i915g: Roll back to the previous shader limits.
authorStéphane Marchesin <marcheu@chromium.org>
Fri, 9 Dec 2011 03:22:13 +0000 (19:22 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Tue, 13 Dec 2011 19:26:49 +0000 (11:26 -0800)
Those shader limits seem to be responsible for a piglit hang.

src/gallium/drivers/i915/i915_fpc.h
src/gallium/drivers/i915/i915_reg.h
src/gallium/drivers/i915/i915_screen.c

index bfd658f81636ee05953329bdd13768cf2b23cae0..26cf2fbbe1072470adbea2e19ca48d8be10005eb 100644 (file)
@@ -37,7 +37,7 @@
 
 #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
index 620c64e67a2450f7e0d0a64deb5fc157f5de56f8..e48a942c6fe42f954c51a030ca0c85a9244deed1 100644 (file)
 #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
index 7ef24f5d6eaacfae109fa7dc166453e1fa265367..991f03bb663753a559373862eb84272df3e91587 100644 (file)
@@ -114,7 +114,7 @@ i915_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_sha
          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;