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 <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2011-11-27 16:24:26 +00:00
parent c33d2e6b08
commit d38768fe38

View file

@ -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 &&