summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_llvm_sample.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-08-07 17:09:45 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-08-08 18:55:57 +0200
commiteac57bc223dd2bf9d988b9f1ee0e126a27c98bf8 (patch)
treebf1aa53ac80b49f229b4062f49d9b1eb4732685a /src/gallium/auxiliary/draw/draw_llvm_sample.c
parentc8572a9457f8fd32e64fcf4f55c080dff6bd77be (diff)
downloadexternal_mesa3d-eac57bc223dd2bf9d988b9f1ee0e126a27c98bf8.zip
external_mesa3d-eac57bc223dd2bf9d988b9f1ee0e126a27c98bf8.tar.gz
external_mesa3d-eac57bc223dd2bf9d988b9f1ee0e126a27c98bf8.tar.bz2
gallivm: propagate scalar_lod to emit_size_query too
Clearly the returned values need to be per-element if the lod is per element. Does not actually change behavior yet. Reviewed-by: Zack Rusin <zackr@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm_sample.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm_sample.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm_sample.c b/src/gallium/auxiliary/draw/draw_llvm_sample.c
index 0cb5c21..3016d7c 100644
--- a/src/gallium/auxiliary/draw/draw_llvm_sample.c
+++ b/src/gallium/auxiliary/draw/draw_llvm_sample.c
@@ -271,6 +271,7 @@ draw_llvm_sampler_soa_emit_size_query(const struct lp_build_sampler_soa *base,
struct lp_type type,
unsigned texture_unit,
boolean need_nr_mips,
+ boolean scalar_lod,
LLVMValueRef explicit_lod, /* optional */
LLVMValueRef *sizes_out)
{
@@ -284,6 +285,7 @@ draw_llvm_sampler_soa_emit_size_query(const struct lp_build_sampler_soa *base,
type,
texture_unit,
need_nr_mips,
+ scalar_lod,
explicit_lod,
sizes_out);
}