mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 03:20:33 +01:00
tgsi: remove special-case code for fragment position
Since the origin_lower_left / pixel_center_origin changes, we need to use the fragcoord info that's set up in setup_fragcoord_coeff(). The code in exec_declaration() was clobbering the the interpolated fragment position. Fixes progs/glsl/fragcoord.c demo.
This commit is contained in:
parent
476b668ccc
commit
cea2b8d656
1 changed files with 1 additions and 7 deletions
|
|
@ -1761,13 +1761,7 @@ exec_declaration(struct tgsi_exec_machine *mach,
|
|||
last = decl->Range.Last;
|
||||
mask = decl->Declaration.UsageMask;
|
||||
|
||||
if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) {
|
||||
assert(decl->Semantic.Index == 0);
|
||||
assert(first == last);
|
||||
assert(mask == TGSI_WRITEMASK_XYZW);
|
||||
|
||||
mach->Inputs[first] = mach->QuadPos;
|
||||
} else if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) {
|
||||
if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) {
|
||||
uint i;
|
||||
|
||||
assert(decl->Semantic.Index == 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue