projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e00b178
)
st/mesa: Only get mesa mvp dp4 option once
author
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 6 Aug 2010 00:13:41 +0000
(17:13 -0700)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 6 Aug 2010 00:25:13 +0000
(17:25 -0700)
The correct for this is of course to do what comment says
src/mesa/state_tracker/st_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_context.c
b/src/mesa/state_tracker/st_context.c
index 820f58479766e4f321386b76b1938d2999f07490..3eb47086887a507b2c9c3442c84af8794f1170f6 100644
(file)
--- 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);