[Mesa-dev] [PATCH] i965: Remove unused userclip flags.
Paul Berry
stereotype441 at gmail.com
Sat Feb 16 10:46:08 PST 2013
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).
---
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(-)
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 5095602..c173e49 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 7663c60..c6c6c14 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 f2597c8..6e014fa 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;
/**
--
1.8.1.3
More information about the mesa-dev
mailing list