Those shader limits seem to be responsible for a piglit hang.
#include "tgsi/tgsi_parse.h"
-#define I915_PROGRAM_SIZE (3 * I915_MAX_INSN)
+#define I915_PROGRAM_SIZE 192
/* Use those indices for pos/face routing, must be >= num of inputs */
#define I915_SEMANTIC_POS 100
#define I915_MAX_DECL_INSN 27
#define I915_MAX_TEMPORARY 16
-#define I915_MAX_INSN (I915_MAX_DECL_INSN + \
- I915_MAX_TEX_INSN + \
- I915_MAX_ALU_INSN)
-
/* Each instruction is 3 dwords long, though most don't require all
* this space. Maximum of 123 instructions. Smaller maxes per insn
return draw_get_shader_param(shader, cap);
}
case PIPE_SHADER_FRAGMENT:
- /* XXX: these are just shader model 2.0 values, fix this! */
+ /* XXX: some of these are just shader model 2.0 values, fix this! */
switch(cap) {
case PIPE_SHADER_CAP_MAX_INSTRUCTIONS:
return I915_MAX_ALU_INSN + I915_MAX_TEX_INSN;