mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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:
parent
c33d2e6b08
commit
d38768fe38
1 changed files with 3 additions and 0 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue