mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-12 13:20:33 +01:00
i915: Add support for reading output regs in the FS.
Fixes glsl-unused-varying and many others, since we produce an output reg read any time gl_FragColor is written inside an if statement.
This commit is contained in:
parent
66690864ef
commit
e43b250fc0
1 changed files with 14 additions and 0 deletions
|
|
@ -143,6 +143,20 @@ src_vector(struct i915_fragment_program *p,
|
|||
}
|
||||
break;
|
||||
|
||||
case PROGRAM_OUTPUT:
|
||||
switch (source->Index) {
|
||||
case FRAG_RESULT_COLOR:
|
||||
src = UREG(REG_TYPE_OC, 0);
|
||||
break;
|
||||
case FRAG_RESULT_DEPTH:
|
||||
src = UREG(REG_TYPE_OD, 0);
|
||||
break;
|
||||
default:
|
||||
i915_program_error(p, "Bad source->Index: %d", source->Index);
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
||||
/* Various paramters and env values. All emitted to
|
||||
* hardware as program constants.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue