radv: Don't use a virtual function for getting the buffer virtual address.
We are really not going to use a winsys which does not need to store the va, so might as well store it in a standard field. Not sure this helps perf much though, as most of the cost is in the cache miss accessing the bo anyway, which we stil need to do. Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -380,7 +380,7 @@ radv_dump_annotated_shader(struct radv_pipeline *pipeline,
|
||||
if (!shader)
|
||||
return;
|
||||
|
||||
start_addr = device->ws->buffer_get_va(shader->bo) + shader->bo_offset;
|
||||
start_addr = radv_buffer_get_va(shader->bo) + shader->bo_offset;
|
||||
end_addr = start_addr + shader->code_size;
|
||||
|
||||
/* See if any wave executes the shader. */
|
||||
|
Reference in New Issue
Block a user