st/mesa: decrease the size of remaining st_translate_program array params
authorMarek Olšák <marek.olsak@amd.com>
Sun, 30 Apr 2017 13:53:10 +0000 (15:53 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 8 May 2017 16:32:00 +0000 (18:32 +0200)
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atifs_to_tgsi.c
src/mesa/state_tracker/st_atifs_to_tgsi.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.h
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_mesa_to_tgsi.h
src/mesa/state_tracker/st_program.c

index 0cba1691947b4357ba62e680ccd8d9cd1b233a6c..8b9c332feb71b8e56fefada08e9e35c5877daf91 100644 (file)
@@ -428,7 +428,7 @@ st_translate_atifs_program(
    const ubyte inputMapping[],
    const ubyte inputSemanticName[],
    const ubyte inputSemanticIndex[],
-   const GLuint interpMode[],
+   const ubyte interpMode[],
    GLuint numOutputs,
    const ubyte outputMapping[],
    const ubyte outputSemanticName[],
index 980555c778f322a0702eb03eca71d33f93f14433..ce547911cfe01d25da9cd6d08ae2c77955e39486 100644 (file)
@@ -46,7 +46,7 @@ st_translate_atifs_program(
     const ubyte inputMapping[],
     const ubyte inputSemanticName[],
     const ubyte inputSemanticIndex[],
-    const GLuint interpMode[],
+    const ubyte interpMode[],
     GLuint numOutputs,
     const ubyte outputMapping[],
     const ubyte outputSemanticName[],
index ba56286b88c3993c596d9aacb3e18f9fc9168c84..f04719b66b67d6be8e660bc19055128b5987ed30 100644 (file)
@@ -6238,10 +6238,10 @@ st_translate_program(
    const struct gl_program *proginfo,
    GLuint numInputs,
    const ubyte inputMapping[],
-   const GLuint inputSlotToAttr[],
+   const ubyte inputSlotToAttr[],
    const ubyte inputSemanticName[],
    const ubyte inputSemanticIndex[],
-   const GLuint interpMode[],
+   const ubyte interpMode[],
    GLuint numOutputs,
    const ubyte outputMapping[],
    const ubyte outputSemanticName[],
index 7042817d29d222e7af8f641927c4a31121921f62..37dfdb3c140f6ec396dd79082373a3f7784c3a81 100644 (file)
@@ -43,10 +43,10 @@ enum pipe_error st_translate_program(
    const struct gl_program *proginfo,
    GLuint numInputs,
    const ubyte inputMapping[],
-   const GLuint inputSlotToAttr[],
+   const ubyte inputSlotToAttr[],
    const ubyte inputSemanticName[],
    const ubyte inputSemanticIndex[],
-   const GLuint interpMode[],
+   const ubyte interpMode[],
    GLuint numOutputs,
    const ubyte outputMapping[],
    const ubyte outputSemanticName[],
index d7609621481ac2753d95d8c6578fd8ed8485fe3c..b3721d8703b93a7e76b0b50676db474072673f98 100644 (file)
@@ -802,7 +802,7 @@ st_translate_mesa_program(
    const ubyte inputMapping[],
    const ubyte inputSemanticName[],
    const ubyte inputSemanticIndex[],
-   const GLuint interpMode[],
+   const ubyte interpMode[],
    GLuint numOutputs,
    const ubyte outputMapping[],
    const ubyte outputSemanticName[],
index 42015fc48ae265c6d7db1a03549bf92352dbac6b..b4d9af635a87734ac9411c52abba3ebd9cc9902d 100644 (file)
@@ -54,7 +54,7 @@ st_translate_mesa_program(
    const ubyte inputMapping[],
    const ubyte inputSemanticName[],
    const ubyte inputSemanticIndex[],
-   const GLuint interpMode[],
+   const ubyte interpMode[],
    GLuint numOutputs,
    const ubyte outputMapping[],
    const ubyte outputSemanticName[],
index f15709238c1d754430d8fd3f87b23fe09623f5f0..d9b1d12434ea59cfc89c8023e1b360c9373b344b 100644 (file)
@@ -715,8 +715,8 @@ st_translate_fragment_program(struct st_context *st,
 {
    ubyte outputMapping[2 * FRAG_RESULT_MAX];
    ubyte inputMapping[VARYING_SLOT_MAX];
-   GLuint inputSlotToAttr[VARYING_SLOT_MAX];
-   GLuint interpMode[PIPE_MAX_SHADER_INPUTS];  /* XXX size? */
+   ubyte inputSlotToAttr[VARYING_SLOT_MAX];
+   ubyte interpMode[PIPE_MAX_SHADER_INPUTS];  /* XXX size? */
    GLuint attr;
    GLbitfield64 inputsRead;
    struct ureg_program *ureg;
@@ -1344,7 +1344,7 @@ st_translate_program_common(struct st_context *st,
                             unsigned tgsi_processor,
                             struct pipe_shader_state *out_state)
 {
-   GLuint inputSlotToAttr[VARYING_SLOT_TESS_MAX];
+   ubyte inputSlotToAttr[VARYING_SLOT_TESS_MAX];
    ubyte inputMapping[VARYING_SLOT_TESS_MAX];
    ubyte outputMapping[VARYING_SLOT_TESS_MAX];
    GLuint attr;