projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f93e431
)
gallium/ttn: Fix the type of gl_FragDepth.
author
Eric Anholt
<eric@anholt.net>
Wed, 19 Sep 2018 19:35:51 +0000
(12:35 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Oct 2018 00:16:43 +0000
(17:16 -0700)
In TGSI we have a vec4 of which only .z is used, but for NIR we should be
using a float the same as other NIR IR. We were already moving TGSI's .z
to the .x channel.
Acked-by: Rob Clark <robdclark@gmail.com>
src/gallium/auxiliary/nir/tgsi_to_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/nir/tgsi_to_nir.c
b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 12114dc2030ab8d841295b3283b7a57b358b33e2..4f7f900c2433b6d7a11d59763b6d788c0c414d40 100644
(file)
--- a/
src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/
src/gallium/auxiliary/nir/tgsi_to_nir.c
@@
-344,6
+344,7
@@
ttn_emit_declaration(struct ttn_compile *c)
}
case TGSI_SEMANTIC_POSITION:
var->data.location = FRAG_RESULT_DEPTH;
+ var->type = glsl_float_type();
break;
default:
fprintf(stderr, "Bad TGSI semantic: %d/%d\n",