mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
r600g: interpret integer texture types as ints.
For signed/unsigned with no normalisation or srgb, assume its an INT type texture. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2dfabdd0a4
commit
f2bae9456f
1 changed files with 5 additions and 0 deletions
|
|
@ -1049,10 +1049,15 @@ uint32_t r600_translate_texformat(struct pipe_screen *screen,
|
|||
switch (desc->channel[i].type) {
|
||||
case UTIL_FORMAT_TYPE_UNSIGNED:
|
||||
case UTIL_FORMAT_TYPE_SIGNED:
|
||||
#if 0
|
||||
if (!desc->channel[i].normalized &&
|
||||
desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB) {
|
||||
goto out_unknown;
|
||||
}
|
||||
#endif
|
||||
if (desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB &&
|
||||
!desc->channel[i].normalized)
|
||||
word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT);
|
||||
|
||||
switch (desc->channel[i].size) {
|
||||
case 4:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue