Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
brw_draw_init( brw );
+ brw->new_vs_backend = (getenv("INTEL_NEW_VS") != NULL);
+
return GL_TRUE;
}
GLboolean has_negative_rhw_bug;
GLboolean has_aa_line_parameters;
GLboolean has_pln;
+ GLboolean new_vs_backend;
struct {
struct brw_state_flags dirty;
void *mem_ctx;
int aux_size;
int i;
- static int new_vs = -1;
memset(&c, 0, sizeof(c));
memcpy(&c.key, key, sizeof(*key));
/* Emit GEN4 code.
*/
- if (new_vs == -1)
- new_vs = getenv("INTEL_NEW_VS") != NULL;
-
- if (new_vs && prog) {
+ if (brw->new_vs_backend && prog) {
if (!brw_vs_emit(prog, &c)) {
ralloc_free(mem_ctx);
return false;