mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 09:30:20 +01:00
i965/fs: Add missing analysis invalidation in opt_sampler_eot().
Bug found by the liveness analysis validation pass that will be
introduced in a later commit. opt_sampler_eot() was allocating
registers and inserting and removing instructions, which makes the
cached liveness analysis calculation inconsistent with the shader IR,
so it must be invalidated.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Matt Turner <mattst88@gmail.com>
(cherry picked from commit 6691c03fd3)
This commit is contained in:
parent
adc355ec4e
commit
e53e9b9a36
1 changed files with 4 additions and 1 deletions
|
|
@ -2374,8 +2374,10 @@ fs_visitor::opt_sampler_eot()
|
|||
* we have enough space, but it will make sure the dead code eliminator kills
|
||||
* the instruction that this will replace.
|
||||
*/
|
||||
if (tex_inst->header_size != 0)
|
||||
if (tex_inst->header_size != 0) {
|
||||
invalidate_live_intervals();
|
||||
return true;
|
||||
}
|
||||
|
||||
fs_reg send_header = ibld.vgrf(BRW_REGISTER_TYPE_F,
|
||||
load_payload->sources + 1);
|
||||
|
|
@ -2406,6 +2408,7 @@ fs_visitor::opt_sampler_eot()
|
|||
tex_inst->insert_before(cfg->blocks[cfg->num_blocks - 1], new_load_payload);
|
||||
tex_inst->src[0] = send_header;
|
||||
|
||||
invalidate_live_intervals();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue