i915: Add support for gl_FragData[0] reads.
authorHenri Verbeet <hverbeet@gmail.com>
Sun, 15 Dec 2013 11:23:38 +0000 (12:23 +0100)
committerHenri Verbeet <hverbeet@gmail.com>
Sun, 22 Dec 2013 10:55:39 +0000 (11:55 +0100)
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>
src/mesa/drivers/dri/i915/i915_fragprog.c

index dff4b9f0b128b262c21107d737747883b33a14bc..34df6fc0f0bc5e4c0dbe5f19632ab1289d914032 100644 (file)
@@ -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: