Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6390,7 +6390,7 @@ def _gen_buffer_load(
if counter is not None:
L.append(f' d->wait_counter_type = {counter};')
L.append(' d->lds_dst = true;')
L.append(' d->lds_base = wf.m0() + wf.lds_base();')
L.append(' d->lds_base = wf.m0() + inst_.offset + wf.lds_base();')
L.append(f' d->mtype = {self._mtype_expr()};')
L.append(f' d->non_temporal = {nt};')
L.append(f' {addr_fn}(inst_, wf, *d);')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void BufferLoadFormatXMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -59,7 +59,7 @@ void BufferLoadFormatXyMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -86,7 +86,7 @@ void BufferLoadFormatXyzMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -113,7 +113,7 @@ void BufferLoadFormatXyzwMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -280,7 +280,7 @@ void BufferLoadUbyteMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -307,7 +307,7 @@ void BufferLoadSbyteMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -335,7 +335,7 @@ void BufferLoadUshortMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -362,7 +362,7 @@ void BufferLoadSshortMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -390,7 +390,7 @@ void BufferLoadDwordMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -417,7 +417,7 @@ void BufferLoadDwordx2Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -444,7 +444,7 @@ void BufferLoadDwordx3Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -471,7 +471,7 @@ void BufferLoadDwordx4Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -688,7 +688,7 @@ void BufferLoadUbyteD16Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -716,7 +716,7 @@ void BufferLoadUbyteD16HiMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -744,7 +744,7 @@ void BufferLoadSbyteD16Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -773,7 +773,7 @@ void BufferLoadSbyteD16HiMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -802,7 +802,7 @@ void BufferLoadShortD16Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -830,7 +830,7 @@ void BufferLoadShortD16HiMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void BufferLoadFormatXMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -59,7 +59,7 @@ void BufferLoadFormatXyMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -86,7 +86,7 @@ void BufferLoadFormatXyzMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -113,7 +113,7 @@ void BufferLoadFormatXyzwMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -280,7 +280,7 @@ void BufferLoadUbyteMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -307,7 +307,7 @@ void BufferLoadSbyteMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -335,7 +335,7 @@ void BufferLoadUshortMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -362,7 +362,7 @@ void BufferLoadSshortMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -390,7 +390,7 @@ void BufferLoadDwordMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -417,7 +417,7 @@ void BufferLoadDwordx2Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -444,7 +444,7 @@ void BufferLoadDwordx3Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand All @@ -471,7 +471,7 @@ void BufferLoadDwordx4Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -688,7 +688,7 @@ void BufferLoadUbyteD16Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -716,7 +716,7 @@ void BufferLoadUbyteD16HiMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -744,7 +744,7 @@ void BufferLoadSbyteD16Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -773,7 +773,7 @@ void BufferLoadSbyteD16HiMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -802,7 +802,7 @@ void BufferLoadShortD16Mubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down Expand Up @@ -830,7 +830,7 @@ void BufferLoadShortD16HiMubuf::execute_impl(amdgpu::Wavefront &wf) {
d->is_load = true;
d->wait_counter_type = amdgpu::WaitCounterType::VMCNT;
d->lds_dst = true;
d->lds_base = wf.m0() + wf.lds_base();
d->lds_base = wf.m0() + inst_.offset + wf.lds_base();
d->mtype = amdgpu::mtype_from_flags_gfx9(inst_.glc);
d->non_temporal = 0;
mubuf_calculate_addresses(inst_, wf, *d);
Expand Down
Loading
Loading