aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-02-11 10:06:09 +0200
committerTapani Pälli <[email protected]>2019-02-12 08:42:25 +0200
commit3da858a6b990c51615067df42d1fdc203bbe8ed5 (patch)
tree60f49d466f0c43b5626fa89a62b36d72c9e9b45a /src/mesa/drivers/dri/i965
parent722f96bfc83b7ab2981756e5d887d0dc8ee1b4f0 (diff)
intel/compiler: add scale_factors to sampler_prog_key_data
Patch propagates given scale_factors to lowering options. Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 7bbb6166344..9092c560451 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -309,6 +309,7 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx,
const int s = u_bit_scan(&mask);
key->swizzles[s] = SWIZZLE_NOOP;
+ key->scale_factors[s] = 0.0f;
int unit_id = prog->SamplerUnits[s];
const struct gl_texture_unit *unit = &ctx->Texture.Unit[unit_id];