gallium: move, increase ST_MAX_SHADER_TOKENS
This commit is contained in:
@@ -49,6 +49,9 @@
|
|||||||
#include "cso_cache/cso_context.h"
|
#include "cso_cache/cso_context.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define ST_MAX_SHADER_TOKENS 4096
|
||||||
|
|
||||||
|
|
||||||
#define TGSI_DEBUG 0
|
#define TGSI_DEBUG 0
|
||||||
|
|
||||||
|
|
||||||
@@ -296,6 +299,8 @@ st_translate_vertex_program(struct st_context *st,
|
|||||||
/* tokenized result */
|
/* tokenized result */
|
||||||
tokens, ST_MAX_SHADER_TOKENS);
|
tokens, ST_MAX_SHADER_TOKENS);
|
||||||
|
|
||||||
|
assert(num_tokens < ST_MAX_SHADER_TOKENS);
|
||||||
|
|
||||||
vs.tokens = (struct tgsi_token *)
|
vs.tokens = (struct tgsi_token *)
|
||||||
mem_dup(tokens, num_tokens * sizeof(tokens[0]));
|
mem_dup(tokens, num_tokens * sizeof(tokens[0]));
|
||||||
|
|
||||||
@@ -467,6 +472,8 @@ st_translate_fragment_program(struct st_context *st,
|
|||||||
/* tokenized result */
|
/* tokenized result */
|
||||||
tokens, ST_MAX_SHADER_TOKENS);
|
tokens, ST_MAX_SHADER_TOKENS);
|
||||||
|
|
||||||
|
assert(num_tokens < ST_MAX_SHADER_TOKENS);
|
||||||
|
|
||||||
fs.tokens = (struct tgsi_token *)
|
fs.tokens = (struct tgsi_token *)
|
||||||
mem_dup(tokens, num_tokens * sizeof(tokens[0]));
|
mem_dup(tokens, num_tokens * sizeof(tokens[0]));
|
||||||
|
|
||||||
|
@@ -39,9 +39,6 @@
|
|||||||
#include "pipe/p_shader_tokens.h"
|
#include "pipe/p_shader_tokens.h"
|
||||||
|
|
||||||
|
|
||||||
#define ST_MAX_SHADER_TOKENS 1024
|
|
||||||
|
|
||||||
|
|
||||||
struct cso_fragment_shader;
|
struct cso_fragment_shader;
|
||||||
struct cso_vertex_shader;
|
struct cso_vertex_shader;
|
||||||
struct translated_vertex_program;
|
struct translated_vertex_program;
|
||||||
|
Reference in New Issue
Block a user