mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
st/mesa: Only get mesa mvp dp4 option once
The correct for this is of course to do what comment says
This commit is contained in:
parent
e00b17830b
commit
99611f0849
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue