[Mesa-dev] [PATCH] i965: handle gl_PointCoord for Gen4 and Gen5 platforms

Eric Anholt eric at anholt.net
Tue Mar 6 08:25:10 PST 2012


On Mon, 27 Feb 2012 15:46:32 +0800, Yuanhan Liu <yuanhan.liu at linux.intel.com> wrote:
> diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c
> index 6e63583..7950c47 100644
> --- a/src/mesa/drivers/dri/i965/brw_sf.c
> +++ b/src/mesa/drivers/dri/i965/brw_sf.c
> @@ -125,6 +135,7 @@ brw_upload_sf_prog(struct brw_context *brw)
>  {
>     struct gl_context *ctx = &brw->intel.ctx;
>     struct brw_sf_prog_key key;

There should be a /* _NEW_BUFFERS */ comment here to note the state flag
dependency.

> +   bool render_to_fbo = ctx->DrawBuffer->Name != 0;

Other than that,

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120306/9e20c5d0/attachment.pgp>


More information about the mesa-dev mailing list