[Mesa-stable] [PATCH 1/1] i915: Add support for gl_FragData[0] reads.
Ian Romanick
idr at freedesktop.org
Mon Dec 16 10:59:15 PST 2013
On 12/15/2013 03:31 AM, Henri Verbeet wrote:
> Similar to 556a47a2621073185be83a0a721a8ba93392bedb, without this reading from
> gl_FragData[0] would cause a software fallback.
Oops. I'm surprised nobody ever noticed this problem before. :( Good
catch.
> Bugzilla: https://bugs.winehq.org/show_bug.cgi?id=33964
> Signed-off-by: Henri Verbeet <hverbeet at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: 10.0 9.2 9.1 <mesa-stable at lists.freedesktop.org>
> ---
> src/mesa/drivers/dri/i915/i915_fragprog.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c
> index dff4b9f..34df6fc 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:
>
More information about the mesa-stable
mailing list