summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-08-05 17:13:41 -0700
committerJakob Bornecrantz <jakob@vmware.com>2010-08-05 17:25:13 -0700
commit99611f08497f1567a50ef3e7ea51e63fdf4beb26 (patch)
treef431e8e244cf73efc767f0152bcd9c003ff54534 /src/mesa/state_tracker/st_context.c
parente00b17830bb3193d5a24f6a9dfabb996e02c1d74 (diff)
st/mesa: Only get mesa mvp dp4 option once
The correct for this is of course to do what comment says
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 820f584797..3eb4708688 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -63,6 +63,9 @@
#include "cso_cache/cso_context.h"
+DEBUG_GET_ONCE_BOOL_OPTION(mesa_mvp_dp4, "MESA_MVP_DP4", FALSE);
+
+
/**
* Called via ctx->Driver.UpdateState()
*/
@@ -170,7 +173,7 @@ struct st_context *st_create_context(gl_api api, struct pipe_context *pipe,
/* XXX: need a capability bit in gallium to query if the pipe
* driver prefers DP4 or MUL/MAD for vertex transformation.
*/
- if (debug_get_bool_option("MESA_MVP_DP4", FALSE))
+ if (debug_get_option_mesa_mvp_dp4())
_mesa_set_mvp_with_dp4( ctx, GL_TRUE );
return st_create_context_priv(ctx, pipe);