diff options
author | Timothy Arceri <[email protected]> | 2019-03-29 12:39:48 +1100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-04-12 09:02:59 +0200 |
commit | 035759b61ba1778d5143cdf3a8795a62dd5d8a60 (patch) | |
tree | 18f3e4fb796338f1e72defe381e9bd7e463e7ce3 /src/freedreno | |
parent | 3b2a9ffd60eb3612e1034019e499a27a1c2a672b (diff) |
nir/i965/freedreno/vc4: add a bindless bool to type size functions
This required to calculate sizes correctly when we have bindless
samplers/images.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3_shader.c | 2 | ||||
-rw-r--r-- | src/freedreno/ir3/ir3_shader.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c index d40c6e0e161..b2329899bac 100644 --- a/src/freedreno/ir3/ir3_shader.c +++ b/src/freedreno/ir3/ir3_shader.c @@ -35,7 +35,7 @@ #include "ir3_nir.h" int -ir3_glsl_type_size(const struct glsl_type *type) +ir3_glsl_type_size(const struct glsl_type *type, bool bindless) { return glsl_count_attribute_slots(type, false); } diff --git a/src/freedreno/ir3/ir3_shader.h b/src/freedreno/ir3/ir3_shader.h index 58d14197879..b3481c12990 100644 --- a/src/freedreno/ir3/ir3_shader.h +++ b/src/freedreno/ir3/ir3_shader.h @@ -518,7 +518,7 @@ void ir3_shader_disasm(struct ir3_shader_variant *so, uint32_t *bin, FILE *out); uint64_t ir3_shader_outputs(const struct ir3_shader *so); int -ir3_glsl_type_size(const struct glsl_type *type); +ir3_glsl_type_size(const struct glsl_type *type, bool bindless); static inline const char * ir3_shader_stage(struct ir3_shader *shader) |