mesa: Move ARB_vp position invariant option handling to NIR.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>
This commit is contained in:
Emma Anholt
2023-05-16 15:03:44 -07:00
committed by Marge Bot
parent 9301c08343
commit 279403d174
9 changed files with 68 additions and 279 deletions

View File

@@ -38,7 +38,6 @@
#include "program/prog_parameter.h"
#include "program/prog_print.h"
#include "program/prog_to_nir.h"
#include "program/programopt.h"
#include "compiler/glsl/gl_nir.h"
#include "compiler/glsl/gl_nir_linker.h"
@@ -585,10 +584,6 @@ static bool
st_translate_vertex_program(struct st_context *st,
struct gl_program *prog)
{
/* ARB_vp: */
if (prog->arb.IsPositionInvariant)
_mesa_insert_mvp_code(st->ctx, prog);
/* This determines which states will be updated when the assembly
* shader is bound.
*/