gallium: add PIPE_SHADER_CAP_INTEGERS
authorBryan Cain <bryancain3@gmail.com>
Fri, 6 May 2011 02:10:28 +0000 (21:10 -0500)
committerBryan Cain <bryancain3@gmail.com>
Mon, 1 Aug 2011 22:59:07 +0000 (17:59 -0500)
src/gallium/auxiliary/tgsi/tgsi_exec.h
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/i965/brw_screen.c
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nvc0/nvc0_screen.c
src/gallium/drivers/nvfx/nvfx_screen.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/include/pipe/p_defines.h

index 33f33aa82c73b5d0851df2569e9bd9dfd6df99a6..6c32ccff323a317b2189a32f45c4fadfe57c803e 100644 (file)
@@ -400,6 +400,8 @@ tgsi_exec_get_shader_param(enum pipe_shader_cap param)
       return 1;
    case PIPE_SHADER_CAP_SUBROUTINES:
       return 1;
+   case PIPE_SHADER_CAP_INTEGERS:
+      return 1;
    default:
       return 0;
    }
index c86baa58b2897e7c2aa059e9b8c0a8c98d89a370..5b3af2519fc8c5c0a8e5db8d586340704386ad7a 100644 (file)
@@ -222,6 +222,8 @@ i915_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_sha
          return 1;
       case PIPE_SHADER_CAP_SUBROUTINES:
          return 0;
+      case PIPE_SHADER_CAP_INTEGERS:
+         return 0;
       default:
          debug_printf("%s: Unknown cap %u.\n", __FUNCTION__, cap);
          return 0;
index 9178dfa8f69c0daca3472dcbf7dc3c580614892b..39e9e2fa6ac92caa5b8d77fdd4aad90c93e645da 100644 (file)
@@ -243,6 +243,8 @@ brw_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe_shad
           return 1;
       case PIPE_SHADER_CAP_SUBROUTINES:
           return 1;
+      case PIPE_SHADER_CAP_INTEGERS:
+         return 0;
       default:
          assert(0);
          return 0;
index cc921d08666c6d48c70eb90153277d25e270bcd8..7e436fd47d8b0deb90f12e72feec2e9a82fd1bc3 100644 (file)
@@ -180,6 +180,8 @@ nv50_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
       return 1;
    case PIPE_SHADER_CAP_SUBROUTINES:
       return 0; /* please inline, or provide function declarations */
+   case PIPE_SHADER_CAP_INTEGERS:
+      return 0;
    default:
       NOUVEAU_ERR("unknown PIPE_SHADER_CAP %d\n", param);
       return 0;
index 34bf0f0a2adb51fb2fdd3884bd750f13620f55de..52143981500bfd83baafce0daf2c093c22df449b 100644 (file)
@@ -167,6 +167,8 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
       return 1;
    case PIPE_SHADER_CAP_SUBROUTINES:
       return 0; /* please inline, or provide function declarations */
+   case PIPE_SHADER_CAP_INTEGERS:
+      return 0;
    default:
       NOUVEAU_ERR("unknown PIPE_SHADER_CAP %d\n", param);
       return 0;
index 475138c3c3202cb4ee3e965be5d2e48a432830f4..d880b12fcaa2101decc5868d318afd0bbb3a81e6 100644 (file)
@@ -174,6 +174,8 @@ nvfx_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader, enum
                        return 1;
                case PIPE_SHADER_CAP_SUBROUTINES:
                        return 1;
+               case PIPE_SHADER_CAP_INTEGERS:
+                       return 0;
                default:
                        break;
                }
index fae03acb6d13c30c8304892010d95ff8157cccfe..93baba6815021e9bc027a9373b672ce51edbb69e 100644 (file)
@@ -256,6 +256,8 @@ static int r300_get_shader_param(struct pipe_screen *pscreen, unsigned shader, e
             return 1;
         case PIPE_SHADER_CAP_SUBROUTINES:
             return 0;
+        case PIPE_SHADER_CAP_INTEGERS:
+            return 0;
         default:
             break;
         }
index 16fe6c54a15380312fe693440b3954f4b15c4186..2d74413752277c8aee1fafc0f7470b2597bfcf55 100644 (file)
@@ -504,6 +504,8 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
                return 1;
        case PIPE_SHADER_CAP_SUBROUTINES:
                return 0;
+       case PIPE_SHADER_CAP_INTEGERS:
+               return 0;
        default:
                return 0;
        }
index b847cf331b3a7faf84264c969e0f6ca94587b870..4be10ef5821821bd57543d2e973957618480c527 100644 (file)
@@ -286,6 +286,8 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en
          return 1;
       case PIPE_SHADER_CAP_SUBROUTINES:
          return 0;
+      case PIPE_SHADER_CAP_INTEGERS:
+         return 0;
       default:
          break;
       }
index c0c2a7c7fd26fa48d5a6669b7dd2424d30d0eaf0..2c95c204e5bae6dd47e3d507237637310a36297f 100644 (file)
@@ -491,6 +491,7 @@ enum pipe_shader_cap
    PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR = 14,
    PIPE_SHADER_CAP_INDIRECT_CONST_ADDR = 15,
    PIPE_SHADER_CAP_SUBROUTINES = 16, /* BGNSUB, ENDSUB, CAL, RET */
+   PIPE_SHADER_CAP_INTEGERS = 17,
 };