From: Dave Airlie Date: Sun, 27 Nov 2011 16:24:26 +0000 (+0000) Subject: r600g: add int support for 2/10/10/10 format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d38768fe3882ac4bc29d4cb7aca975f20c981c0c;p=mesa.git 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 --- 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 &&