r600: Use nir_builder_at
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23883>
This commit is contained in:
committed by
Marge Bot
parent
fba5c97bc1
commit
977f385e65
@@ -1224,10 +1224,9 @@ StoreMerger::combine_one_slot(vector<nir_intrinsic_instr *>& stores)
|
||||
{
|
||||
nir_ssa_def *srcs[4] = {nullptr};
|
||||
|
||||
nir_builder b = nir_builder_create(nir_shader_get_entrypoint(sh));
|
||||
auto last_store = *stores.rbegin();
|
||||
|
||||
b.cursor = nir_before_instr(&last_store->instr);
|
||||
nir_builder b = nir_builder_at(nir_before_instr(&last_store->instr));
|
||||
|
||||
unsigned comps = 0;
|
||||
unsigned writemask = 0;
|
||||
|
||||
Reference in New Issue
Block a user