mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
gallium/ttn: Fix the type of gl_FragDepth.
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>
This commit is contained in:
parent
f93e431272
commit
da15a0d88e
1 changed files with 1 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue