if (!ctx->vs_pos_only[index]) {
struct pipe_stream_output_info so;
- const uint semantic_names[] = { TGSI_SEMANTIC_POSITION };
+ static const enum tgsi_semantic semantic_names[] =
+ { TGSI_SEMANTIC_POSITION };
const uint semantic_indices[] = { 0 };
memset(&so, 0, sizeof(so));
struct pipe_context *pipe = ctx->base.pipe;
if (!ctx->vs) {
- const uint semantic_names[] = { TGSI_SEMANTIC_POSITION,
- TGSI_SEMANTIC_GENERIC };
+ static const enum tgsi_semantic semantic_names[] =
+ { TGSI_SEMANTIC_POSITION, TGSI_SEMANTIC_GENERIC };
const uint semantic_indices[] = { 0, 0 };
ctx->vs =
util_make_vertex_passthrough_shader(pipe, 2, semantic_names,
struct pipe_context *pipe = ctx->base.pipe;
if (!ctx->vs_nogeneric) {
- const uint semantic_names[] = { TGSI_SEMANTIC_POSITION };
+ static const enum tgsi_semantic semantic_names[] =
+ { TGSI_SEMANTIC_POSITION };
const uint semantic_indices[] = { 0 };
ctx->vs_nogeneric =