diff options
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_engine.h')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_engine.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_engine.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_engine.h index d441d1d152a1..249b61b2a48f 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_engine.h +++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_engine.h @@ -1430,6 +1430,16 @@ typedef enum _gceTEXTURE_FACE } gceTEXTURE_FACE; +#if gcdFORCE_MIPMAP +typedef enum +{ + gcvForceMipDisabled = 0, + gcvForceMipEnable = 1, + gcvForceMipGenerated = 2, + gcvForceMipNever = 3, +}gceFORCE_MIPMAP; +#endif + typedef struct _gcsTEXTURE { /* Addressing modes. */ @@ -1446,6 +1456,10 @@ typedef struct _gcsTEXTURE gceTEXTURE_FILTER mipFilter; gctUINT anisoFilter; gctBOOL forceTopLevel; + gctBOOL autoMipmap; +#if gcdFORCE_MIPMAP + gceFORCE_MIPMAP forceMipmap; +#endif /* Level of detail. */ gctFIXED_POINT lodBias; gctFIXED_POINT lodMin; @@ -1479,7 +1493,18 @@ gceSTATUS gcoTEXTURE_Destroy( IN gcoTEXTURE Texture ); +#if gcdFORCE_MIPMAP +gceSTATUS +gcoTEXTURE_DestroyForceMipmap( + IN gcoTEXTURE Texture + ); +gceSTATUS +gcoTEXTURE_GetMipLevels( + IN gcoTEXTURE Texture, + OUT gctINT * levels + ); +#endif /* Replace a mipmap in gcoTEXTURE object. */ gceSTATUS gcoTEXTURE_ReplaceMipMap( |