From 444246c7e374a862f281afbcf9f7c5c9f87ac6aa Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Sat, 16 Feb 2013 10:32:50 -0800 Subject: i965: Remove unused userclip flags. brw_vs_prog_data::userclip hasn't been used since commit f0cecd4 (i965: Move VUE map computation to once at VS compile time). brw_gs_prog_key::userclip_active hasn't been used since commit 9f3d321 (i965: Make the userclip flag for the VUE map come from VS prog data). Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 1 - src/mesa/drivers/dri/i965/brw_gs.c | 3 --- src/mesa/drivers/dri/i965/brw_gs.h | 1 - 3 files changed, 5 deletions(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 50956029590..c173e49fefd 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -448,7 +448,6 @@ struct brw_vs_prog_data { GLuint urb_entry_size; bool uses_vertexid; - bool userclip; int num_surfaces; diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 7663c6092f5..c6c6c140bdd 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.c +++ b/src/mesa/drivers/dri/i965/brw_gs.c @@ -181,9 +181,6 @@ static void populate_key( struct brw_context *brw, key->pv_first = true; } - /* CACHE_NEW_VS_PROG (part of VUE map)*/ - key->userclip_active = brw->vs.prog_data->userclip; - if (intel->gen >= 7) { /* On Gen7 and later, we don't use GS (yet). */ key->need_gs_prog = false; diff --git a/src/mesa/drivers/dri/i965/brw_gs.h b/src/mesa/drivers/dri/i965/brw_gs.h index f2597c8abab..6e014fa65d7 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.h +++ b/src/mesa/drivers/dri/i965/brw_gs.h @@ -49,7 +49,6 @@ struct brw_gs_prog_key { GLuint pv_first:1; GLuint need_gs_prog:1; - GLuint userclip_active:1; GLuint rasterizer_discard:1; /** -- cgit v1.2.3