summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2015-03-29 23:21:56 +0200
committerRoland Scheidegger <sroland@vmware.com>2015-03-31 17:23:51 +0200
commit73c6914195bd3cc81f52192d4ec8e23fc6239c41 (patch)
treea4508fa2c171bf6723858ff7c0a28198096f6704 /src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
parent1863ed21ffbb3ab7fd9875dc25e32ececea79d50 (diff)
downloadexternal_mesa3d-73c6914195bd3cc81f52192d4ec8e23fc6239c41.zip
external_mesa3d-73c6914195bd3cc81f52192d4ec8e23fc6239c41.tar.gz
external_mesa3d-73c6914195bd3cc81f52192d4ec8e23fc6239c41.tar.bz2
gallivm: add gather support to sampler interface
Luckily thanks to the revamped interface this is a lot less work now... Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 6a71da6..ae527b2 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -1974,7 +1974,7 @@ emit_tex( struct lp_build_tgsi_soa_context *bld,
unsigned num_derivs, num_offsets, i;
unsigned shadow_coord = 0;
unsigned layer_coord = 0;
- unsigned sample_key = 0;
+ unsigned sample_key = LP_SAMPLER_OP_TEXTURE << LP_SAMPLER_OP_TYPE_SHIFT;
memset(&params, 0, sizeof(params));
@@ -2179,7 +2179,7 @@ emit_sample(struct lp_build_tgsi_soa_context *bld,
unsigned num_offsets, num_derivs, i;
unsigned layer_coord = 0;
- unsigned sample_key = 0;
+ unsigned sample_key = LP_SAMPLER_OP_TEXTURE << LP_SAMPLER_OP_TYPE_SHIFT;
memset(&params, 0, sizeof(params));
@@ -2356,7 +2356,7 @@ emit_fetch_texels( struct lp_build_tgsi_soa_context *bld,
enum lp_sampler_lod_property lod_property = LP_SAMPLER_LOD_SCALAR;
unsigned dims, i;
unsigned layer_coord = 0;
- unsigned sample_key = LP_SAMPLER_FETCH;
+ unsigned sample_key = LP_SAMPLER_OP_FETCH << LP_SAMPLER_OP_TYPE_SHIFT;
memset(&params, 0, sizeof(params));