[Mesa-dev] [PATCH] i965: consolidate generation check
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Wed Jul 6 06:14:57 UTC 2016
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
On 06/07/16 05:14, Timothy Arceri wrote:
> ---
> src/mesa/drivers/dri/i965/brw_vs.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
> index 8f3c7eb..b0a0f23 100644
> --- a/src/mesa/drivers/dri/i965/brw_vs.c
> +++ b/src/mesa/drivers/dri/i965/brw_vs.c
> @@ -329,10 +329,15 @@ brw_vs_populate_key(struct brw_context *brw,
> _mesa_logbase2(ctx->Transform.ClipPlanesEnabled) + 1;
> }
>
> - /* _NEW_POLYGON */
> if (brw->gen < 6) {
> + /* _NEW_POLYGON */
> key->copy_edgeflag = (ctx->Polygon.FrontMode != GL_FILL ||
> ctx->Polygon.BackMode != GL_FILL);
> +
> + /* _NEW_POINT */
> + if (ctx->Point.PointSprite) {
> + key->point_coord_replace = ctx->Point.CoordReplace & 0xff;
> + }
> }
>
> if (prog->OutputsWritten & (VARYING_BIT_COL0 | VARYING_BIT_COL1 |
> @@ -341,11 +346,6 @@ brw_vs_populate_key(struct brw_context *brw,
> key->clamp_vertex_color = ctx->Light._ClampVertexColor;
> }
>
> - /* _NEW_POINT */
> - if (brw->gen < 6 && ctx->Point.PointSprite) {
> - key->point_coord_replace = ctx->Point.CoordReplace & 0xff;
> - }
> -
> /* _NEW_TEXTURE */
> brw_populate_sampler_prog_key_data(ctx, prog, &key->tex);
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160706/4e068996/attachment.sig>
More information about the mesa-dev
mailing list