mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
tgsi: fix the location of sample index
The sample index is always in W. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
7727fbb7c5
commit
0ee4bae70d
1 changed files with 3 additions and 1 deletions
|
|
@ -444,9 +444,11 @@ tgsi_util_get_texture_coord_dim(int tgsi_tex, int *shadow_or_sample)
|
|||
case TGSI_TEXTURE_SHADOW1D_ARRAY:
|
||||
case TGSI_TEXTURE_SHADOW2D_ARRAY:
|
||||
case TGSI_TEXTURE_SHADOWCUBE_ARRAY:
|
||||
*shadow_or_sample = dim;
|
||||
break;
|
||||
case TGSI_TEXTURE_2D_MSAA:
|
||||
case TGSI_TEXTURE_2D_ARRAY_MSAA:
|
||||
*shadow_or_sample = dim;
|
||||
*shadow_or_sample = 3;
|
||||
break;
|
||||
default:
|
||||
/* no shadow nor sample */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue