From 035759b61ba1778d5143cdf3a8795a62dd5d8a60 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 29 Mar 2019 12:39:48 +1100 Subject: nir/i965/freedreno/vc4: add a bindless bool to type size functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This required to calculate sizes correctly when we have bindless samplers/images. Reviewed-by: Marek Olšák --- src/freedreno/ir3/ir3_shader.c | 2 +- src/freedreno/ir3/ir3_shader.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/freedreno') 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) -- cgit v1.2.3