diff options
author | Eric Anholt <[email protected]> | 2010-11-13 14:00:58 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-11-14 22:35:17 +0800 |
commit | 3b337f5cd94384d2d5918fb630aa8089e49b1d8d (patch) | |
tree | ac7114e2e8956a2cc7690a2092940f308db3a2ff /src/mesa/drivers/dri/i965/brw_wm.c | |
parent | d11db2a857141c556378fde9f9f5ec08c7f8636f (diff) |
i965: Fix gl_FragCoord inversion when drawing to an FBO.
This showed up as cairo-gl gradients being inverted on everyone but
Intel, where I'd apparently tweaked the transformation to work around
the bug. Fixes piglit fbo-fragcoord.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c index a6d2a2377f6..ccdc18e0b8d 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.c +++ b/src/mesa/drivers/dri/i965/brw_wm.c @@ -423,6 +423,7 @@ static void brw_wm_populate_key( struct brw_context *brw, */ if (fp->program.Base.InputsRead & FRAG_BIT_WPOS) { key->drawable_height = ctx->DrawBuffer->Height; + key->render_to_fbo = ctx->DrawBuffer->Name != 0; } key->nr_color_regions = brw->state.nr_color_regions; |