summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorHenri Verbeet <hverbeet@gmail.com>2013-12-15 12:23:38 +0100
committerCarl Worth <cworth@cworth.org>2014-01-02 15:57:40 -0800
commitb0ee1b1748f5ffb31dabc548d984cba9f58a5b98 (patch)
treea1cebac0ce910f33eb144adf250d2aff74440e79 /src/mesa
parent8dd89b8ad8dd0d3c98e8700b3d1ed3cba10479c6 (diff)
i915: Add support for gl_FragData[0] reads.
Similar to 556a47a2621073185be83a0a721a8ba93392bedb, without this reading from gl_FragData[0] would cause a software fallback. Bugzilla: https://bugs.winehq.org/show_bug.cgi?id=33964 Signed-off-by: Henri Verbeet <hverbeet@gmail.com> Cc: 10.0 9.2 9.1 <mesa-stable@lists.freedesktop.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit b094b3b9f4c7b40056c31e3480ab7dc530da56e7)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i915/i915_fragprog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c
index 67eff7665d1..23dac254f10 100644
--- a/src/mesa/drivers/dri/i915/i915_fragprog.c
+++ b/src/mesa/drivers/dri/i915/i915_fragprog.c
@@ -146,6 +146,7 @@ src_vector(struct i915_fragment_program *p,
case PROGRAM_OUTPUT:
switch (source->Index) {
case FRAG_RESULT_COLOR:
+ case FRAG_RESULT_DATA0:
src = UREG(REG_TYPE_OC, 0);
break;
case FRAG_RESULT_DEPTH: