diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2024-08-26 09:42:21 +0300 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2024-08-27 09:08:29 +0200 |
commit | c64ba9c8d333c8dd3f1b2065c3aa526473f58225 (patch) | |
tree | 32dcc1146e4ed42b24d2bdf42610f52bfa328d1d /src/intel | |
parent | 87ea4ab7d2ad151ec34e55f61e02a52d9a468d71 (diff) |
anv: always use workaround_address, not workaround_bo
The workaround BO has some debug information at the beginning. The
workaround address is placed after that.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30844>
(cherry picked from commit d8ec8acede81920fa29bddb638550c7df7222785)
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/genX_cmd_draw.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/intel/vulkan/genX_cmd_draw.c b/src/intel/vulkan/genX_cmd_draw.c index e115f4f52df..879a9d2d103 100644 --- a/src/intel/vulkan/genX_cmd_draw.c +++ b/src/intel/vulkan/genX_cmd_draw.c @@ -228,10 +228,7 @@ get_push_range_address(struct anv_cmd_buffer *cmd_buffer, * bytes should be all zeros. */ assert(range->length * 32 <= 2048); - return (struct anv_address) { - .bo = cmd_buffer->device->workaround_bo, - .offset = 1024, - }; + return cmd_buffer->device->workaround_address; } } } @@ -391,10 +388,7 @@ emit_null_push_constant_tbimr_workaround(struct anv_cmd_buffer *cmd_buffer) * XXX - Use workaround infrastructure and final workaround * when provided by hardware team. */ - const struct anv_address null_addr = { - .bo = cmd_buffer->device->workaround_bo, - .offset = 1024, - }; + const struct anv_address null_addr = cmd_buffer->device->workaround_address; uint32_t *dw = anv_batch_emitn( &cmd_buffer->batch, 4, GENX(3DSTATE_CONSTANT_ALL), |