softpipe,llvmpipe: fix PIPE_SHADER_CAP_MAX_INPUTS value
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Jun 2015 22:56:32 +0000 (00:56 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 25 Jun 2015 07:00:23 +0000 (09:00 +0200)
PIPE_MAX_SHADER_INPUTS was recently bumped to 80 because of tessellation.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91099
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91101

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_limits.h
src/gallium/auxiliary/tgsi/tgsi_exec.h

index db503514881336aaaca284765c9c8d6182168f26..2851fd10b04f01cd95237ad93a9055ad8bd79ca6 100644 (file)
@@ -100,7 +100,7 @@ gallivm_get_shader_param(enum pipe_shader_cap param)
    case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH:
       return LP_MAX_TGSI_NESTING;
    case PIPE_SHADER_CAP_MAX_INPUTS:
-      return PIPE_MAX_SHADER_INPUTS;
+      return 32;
    case PIPE_SHADER_CAP_MAX_OUTPUTS:
       return 32;
    case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE:
index 208640cfd468a38db2dc953835a5ef5ad5211108..e8ee2565831c2f181e8af66ae66f340d078122c1 100644 (file)
@@ -213,7 +213,7 @@ struct tgsi_sampler
  * input register files, this is the stride between two 1D
  * arrays.
  */
-#define TGSI_EXEC_MAX_INPUT_ATTRIBS PIPE_MAX_SHADER_INPUTS
+#define TGSI_EXEC_MAX_INPUT_ATTRIBS 32
 
 /* The maximum number of bytes per constant buffer.
  */