summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_texture.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-09-26 18:24:34 +1000
committerDave Airlie <airlied@redhat.com>2009-09-26 18:24:34 +1000
commit20d3c85128192b2d3f75b68f47ab9aadc2719c5a (patch)
treef1be1d11452b1d7c19fe362df7363f768eab9e00 /src/gallium/drivers/r300/r300_texture.h
parent07183b73ebafe2d1083f1c572978317768725b99 (diff)
r300g: add z16 unorm texture format
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.h')
-rw-r--r--src/gallium/drivers/r300/r300_texture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h
index 697669147d..78ee0f1611 100644
--- a/src/gallium/drivers/r300/r300_texture.h
+++ b/src/gallium/drivers/r300/r300_texture.h
@@ -75,6 +75,8 @@ static INLINE uint32_t r300_translate_texformat(enum pipe_format format)
/* Z5_Y6_X5 */
case PIPE_FORMAT_R16_SNORM:
return R300_EASY_TX_FORMAT(X, X, X, X, Z5Y6X5);
+ case PIPE_FORMAT_Z16_UNORM:
+ return R300_EASY_TX_FORMAT(X, X, X, X, X16);
default:
debug_printf("r300: Implementation error: "
"Got unsupported texture format %s in %s\n",