diff options
author | Eric Anholt <[email protected]> | 2016-11-16 16:57:45 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-11-16 19:45:01 -0800 |
commit | 45c022f2b06967196516f0616a9e4959ddcd14da (patch) | |
tree | e2b86f3964f067f66788f18c9e33f9fa9e4c91a9 /src/gallium/drivers/vc4/vc4_screen.h | |
parent | 7130260d1212d84d046c67682cb4eed95c852657 (diff) |
vc4: Add support for ETC1 textures if the kernel is new enough.
The kernel changes for exposing the param have now been merged, so we can
expose it here.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_screen.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.h b/src/gallium/drivers/vc4/vc4_screen.h index 83bb5aacfcf..572d62d6ac1 100644 --- a/src/gallium/drivers/vc4/vc4_screen.h +++ b/src/gallium/drivers/vc4/vc4_screen.h @@ -30,6 +30,10 @@ #include "util/list.h" #include "util/slab.h" +#ifndef DRM_VC4_PARAM_SUPPORTS_ETC1 +#define DRM_VC4_PARAM_SUPPORTS_ETC1 4 +#endif + struct vc4_bo; #define VC4_DEBUG_CL 0x0001 @@ -85,6 +89,7 @@ struct vc4_screen { uint32_t bo_size; uint32_t bo_count; bool has_control_flow; + bool has_etc1; struct vc4_simulator_file *sim_file; }; |