mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 23:20:31 +01:00
radeons: use dp4 for position invariant vertex programs
Fixes #22181. R200 requires this since DP4 is used in hw tnl mode. R300 prefers it (should be faster due to no instruction dependencies), but both methods should be correct (when sw tcl is used though, MUL/MAD might be faster). Probably doesn't make much difference for R100 since vertex progs are executed in software anyway, but let's just keep it the same there too.
This commit is contained in:
parent
9dfce365c7
commit
43bb78f2bb
3 changed files with 6 additions and 0 deletions
|
|
@ -405,6 +405,8 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual,
|
|||
|
||||
ctx->Const.MaxDrawBuffers = 1;
|
||||
|
||||
_mesa_set_mvp_with_dp4( ctx, GL_TRUE );
|
||||
|
||||
/* Initialize the software rasterizer and helper modules.
|
||||
*/
|
||||
_swrast_CreateContext( ctx );
|
||||
|
|
|
|||
|
|
@ -327,6 +327,8 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
|
|||
|
||||
ctx->Const.MaxDrawBuffers = 1;
|
||||
|
||||
_mesa_set_mvp_with_dp4( ctx, GL_TRUE );
|
||||
|
||||
/* Initialize the software rasterizer and helper modules.
|
||||
*/
|
||||
_swrast_CreateContext(ctx);
|
||||
|
|
|
|||
|
|
@ -355,6 +355,8 @@ radeonCreateContext( const __GLcontextModes *glVisual,
|
|||
|
||||
ctx->Const.MaxDrawBuffers = 1;
|
||||
|
||||
_mesa_set_mvp_with_dp4( ctx, GL_TRUE );
|
||||
|
||||
/* Initialize the software rasterizer and helper modules.
|
||||
*/
|
||||
_swrast_CreateContext( ctx );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue