handle IsPositionInvariant flag
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "main/imports.h"
|
||||
#include "main/mtypes.h"
|
||||
#include "shader/prog_print.h"
|
||||
#include "shader/programopt.h"
|
||||
|
||||
#include "pipe/p_context.h"
|
||||
#include "pipe/p_defines.h"
|
||||
@@ -95,6 +96,9 @@ st_translate_vertex_program(struct st_context *st,
|
||||
|
||||
memset(&vs, 0, sizeof(vs));
|
||||
|
||||
if (stvp->Base.IsPositionInvariant)
|
||||
_mesa_insert_mvp_code(st->ctx, &stvp->Base);
|
||||
|
||||
/*
|
||||
* Determine number of inputs, the mappings between VERT_ATTRIB_x
|
||||
* and TGSI generic input indexes, plus input attrib semantic info.
|
||||
|
Reference in New Issue
Block a user