summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_texture.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-11-27 16:24:26 +0000
committerDave Airlie <[email protected]>2011-11-27 19:32:05 +0000
commitd38768fe3882ac4bc29d4cb7aca975f20c981c0c (patch)
tree1fb3f248e41c7ee0dc311b9225f645439f884d72 /src/gallium/drivers/r600/r600_texture.c
parentc33d2e6b08be42d3e4d779777f73ab91b036809f (diff)
r600g: add int support for 2/10/10/10 format.
integer wasn't set properly for the non-uniform types. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 8fe1118d19d..2d041b04e49 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -1012,6 +1012,9 @@ uint32_t r600_translate_texformat(struct pipe_screen *screen,
/* Non-uniform formats. */
if (!uniform) {
+ if (desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB &&
+ desc->channel[0].pure_integer)
+ word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT);
switch(desc->nr_channels) {
case 3:
if (desc->channel[0].size == 5 &&