gallium+mesa: fix tgsi_semantic array type

Fixes: ed23335a31 ("gallium: use enums in p_shader_tokens.h (v2)")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Eric Engestrom
2019-07-23 10:01:44 +01:00
parent f986741a91
commit e7e31b18d6
4 changed files with 16 additions and 10 deletions

View File

@@ -176,8 +176,10 @@ set_vertex_shader(struct st_context *st)
if (use_nir) {
st->clear.vs = make_nir_clear_vertex_shader(st, false);
} else {
const uint semantic_names[] = { TGSI_SEMANTIC_POSITION,
TGSI_SEMANTIC_GENERIC };
const enum tgsi_semantic semantic_names[] = {
TGSI_SEMANTIC_POSITION,
TGSI_SEMANTIC_GENERIC
};
const uint semantic_indexes[] = { 0, 0 };
st->clear.vs = util_make_vertex_passthrough_shader(st->pipe, 2,
semantic_names,