From d38768fe3882ac4bc29d4cb7aca975f20c981c0c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 27 Nov 2011 16:24:26 +0000 Subject: [PATCH] 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 --- src/gallium/drivers/r600/r600_texture.c | 3 +++ 1 file changed, 3 insertions(+) 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 && -- 2.30.2