aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_format.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-04-13 23:37:04 +0800
committerChia-I Wu <[email protected]>2014-04-14 20:45:04 +0800
commit6c6bd796adda4173ebaf494d6cd2a96d511f1ea3 (patch)
treeb6b98c120b5864cec8ef4a5192a2a504fc225bd7 /src/gallium/drivers/ilo/ilo_format.h
parent01e3e82a56310932667c60bcca9cc9fdfd8b87c4 (diff)
ilo: scripted conversion to genhw headers
Hopefully my four hundred line sed script is correct.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_format.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_format.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/drivers/ilo/ilo_format.h b/src/gallium/drivers/ilo/ilo_format.h
index 1be3577774d..2ea7885694e 100644
--- a/src/gallium/drivers/ilo/ilo_format.h
+++ b/src/gallium/drivers/ilo/ilo_format.h
@@ -59,7 +59,7 @@ ilo_translate_format(enum pipe_format format, unsigned bind)
*/
switch (format) {
case PIPE_FORMAT_B8G8R8X8_UNORM:
- return BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
+ return GEN6_FORMAT_B8G8R8A8_UNORM;
default:
return ilo_translate_color_format(format);
}
@@ -76,16 +76,16 @@ ilo_translate_format(enum pipe_format format, unsigned bind)
*/
switch (format) {
case PIPE_FORMAT_Z16_UNORM:
- return BRW_SURFACEFORMAT_I16_UNORM;
+ return GEN6_FORMAT_I16_UNORM;
case PIPE_FORMAT_Z32_FLOAT:
- return BRW_SURFACEFORMAT_I32_FLOAT;
+ return GEN6_FORMAT_I32_FLOAT;
case PIPE_FORMAT_Z24X8_UNORM:
case PIPE_FORMAT_Z24_UNORM_S8_UINT:
- return BRW_SURFACEFORMAT_I24X8_UNORM;
+ return GEN6_FORMAT_I24X8_UNORM;
case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT:
- return BRW_SURFACEFORMAT_I32X32_FLOAT;
+ return GEN6_FORMAT_I32X32_FLOAT;
case PIPE_FORMAT_ETC1_RGB8:
- return BRW_SURFACEFORMAT_R8G8B8X8_UNORM;
+ return GEN6_FORMAT_R8G8B8X8_UNORM;
default:
return ilo_translate_color_format(format);
}
@@ -100,15 +100,15 @@ ilo_translate_format(enum pipe_format format, unsigned bind)
*/
switch (format) {
case PIPE_FORMAT_R16G16B16_FLOAT:
- return BRW_SURFACEFORMAT_R16G16B16A16_FLOAT;
+ return GEN6_FORMAT_R16G16B16A16_FLOAT;
case PIPE_FORMAT_R16G16B16_UINT:
- return BRW_SURFACEFORMAT_R16G16B16A16_UINT;
+ return GEN6_FORMAT_R16G16B16A16_UINT;
case PIPE_FORMAT_R16G16B16_SINT:
- return BRW_SURFACEFORMAT_R16G16B16A16_SINT;
+ return GEN6_FORMAT_R16G16B16A16_SINT;
case PIPE_FORMAT_R8G8B8_UINT:
- return BRW_SURFACEFORMAT_R8G8B8A8_UINT;
+ return GEN6_FORMAT_R8G8B8A8_UINT;
case PIPE_FORMAT_R8G8B8_SINT:
- return BRW_SURFACEFORMAT_R8G8B8A8_SINT;
+ return GEN6_FORMAT_R8G8B8A8_SINT;
default:
return ilo_translate_color_format(format);
}