瀏覽代碼

radeonsi/gfx9: fix si_get_buffer_from_descriptors for 48-bit pointers

This fixes:
GL45-CTS.pipeline_statistics_query_tests_ARB.functional_compute_shader_invocations

Cc: 18.0 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
tags/18.2-branchpoint
Marek Olšák 7 年之前
父節點
當前提交
6d671078a8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/gallium/drivers/radeonsi/si_descriptors.c

+ 2
- 2
src/gallium/drivers/radeonsi/si_descriptors.c 查看文件

@@ -94,7 +94,7 @@ static uint32_t null_image_descriptor[8] = {
* descriptor */
};

static uint64_t si_desc_extract_buffer_address(uint32_t *desc)
static uint64_t si_desc_extract_buffer_address(const uint32_t *desc)
{
uint64_t va = desc[0] |
((uint64_t)G_008F04_BASE_ADDRESS_HI(desc[1]) << 32);
@@ -1054,7 +1054,7 @@ static void si_get_buffer_from_descriptors(struct si_buffer_resources *buffers,
*size = desc[2];

assert(G_008F04_STRIDE(desc[1]) == 0);
va = ((uint64_t)desc[1] << 32) | desc[0];
va = si_desc_extract_buffer_address(desc);

assert(va >= res->gpu_address && va + *size <= res->gpu_address + res->bo_size);
*offset = va - res->gpu_address;

Loading…
取消
儲存