mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
i965: scale factor changes should trigger recompile
Found by inspection.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 3da858a6b9 ("intel/compiler: add scale_factors to sampler_prog_key_data")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
0d8f096293
commit
8c87d029bc
2 changed files with 16 additions and 1 deletions
|
|
@ -1460,6 +1460,16 @@ key_debug(struct brw_context *brw, const char *name, int a, int b)
|
|||
return false;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
key_debug_float(struct brw_context *brw, const char *name, float a, float b)
|
||||
{
|
||||
if (a != b) {
|
||||
perf_debug(" %s %f->%f\n", name, a, b);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void brwInitFragProgFuncs( struct dd_function_table *functions );
|
||||
|
||||
void brw_get_scratch_bo(struct brw_context *brw,
|
||||
|
|
|
|||
|
|
@ -271,12 +271,17 @@ brw_debug_recompile_sampler_key(struct brw_context *brw,
|
|||
old_key->ayuv_image_mask,
|
||||
key->ayuv_image_mask);
|
||||
|
||||
|
||||
for (unsigned int i = 0; i < MAX_SAMPLERS; i++) {
|
||||
found |= key_debug(brw, "textureGather workarounds",
|
||||
old_key->gen6_gather_wa[i], key->gen6_gather_wa[i]);
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < MAX_SAMPLERS; i++) {
|
||||
found |= key_debug_float(brw, "scale factor",
|
||||
old_key->scale_factors[i],
|
||||
key->scale_factors[i]);
|
||||
}
|
||||
|
||||
return found;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue