projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7727fbb
)
tgsi: fix the location of sample index
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 6 Aug 2013 04:21:11 +0000
(06:21 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 15 Aug 2013 00:03:02 +0000
(
02:03
+0200)
The sample index is always in W.
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/tgsi/tgsi_util.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_util.c
b/src/gallium/auxiliary/tgsi/tgsi_util.c
index
39b605b
..
b3bc8f2
100644
(file)
--- a/
src/gallium/auxiliary/tgsi/tgsi_util.c
+++ b/
src/gallium/auxiliary/tgsi/tgsi_util.c
@@
-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 */