mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 12:08:14 +02:00
i915: Add support for gl_FragData[0] for output color.
We advertised ARB_draw_buffers, but either fell back to software when
using this output, or assertion failed. Fixes glsl-fs-fragdata-1, and
failures in some webgl conformance tests.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39024
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34906
(cherry picked from commit 556a47a262)
This commit is contained in:
parent
9279c1e556
commit
a20a950829
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ get_result_vector(struct i915_fragment_program *p,
|
|||
case PROGRAM_OUTPUT:
|
||||
switch (inst->DstReg.Index) {
|
||||
case FRAG_RESULT_COLOR:
|
||||
case FRAG_RESULT_DATA0:
|
||||
return UREG(REG_TYPE_OC, 0);
|
||||
case FRAG_RESULT_DEPTH:
|
||||
p->depth_written = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue