diff options
author | Chia-I Wu <[email protected]> | 2013-05-09 15:14:11 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-09 16:05:48 +0800 |
commit | a8e46140718b85fd33be97c693050f8722db1def (patch) | |
tree | af2c16f4d51d58ac1370e26c73bc656a5f598e0a /src/gallium/drivers/ilo/ilo_format.h | |
parent | 183ea823fd3a8a043ceb0e5d774eee459155a6f6 (diff) |
ilo: add support for PIPE_FORMAT_ETC1_RGB8
It is decompressed to and stored as PIPE_FORMAT_R8G8B8X8_UNORM on-the-fly.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_format.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_format.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_format.h b/src/gallium/drivers/ilo/ilo_format.h index 556b21887c3..c01edd9b73c 100644 --- a/src/gallium/drivers/ilo/ilo_format.h +++ b/src/gallium/drivers/ilo/ilo_format.h @@ -70,6 +70,9 @@ ilo_translate_format(enum pipe_format format, unsigned bind) * values. But we assume in many places that the depth values are * returned as I values (util_make_fragment_tex_shader_writedepth() is * one such example). We have to live with that at least for now. + * + * For ETC1 format, the texture data will be decompressed before being + * written to the bo. See transfer_unmap_sys_convert(). */ switch (format) { case PIPE_FORMAT_Z16_UNORM: @@ -81,6 +84,8 @@ ilo_translate_format(enum pipe_format format, unsigned bind) return BRW_SURFACEFORMAT_I24X8_UNORM; case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT: return BRW_SURFACEFORMAT_I32X32_FLOAT; + case PIPE_FORMAT_ETC1_RGB8: + return BRW_SURFACEFORMAT_R8G8B8X8_UNORM; default: return ilo_translate_color_format(format); } |