mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
radv: initialize radv_device::disable_trunc_coord earlier
The per-device cache key will need to be initialized before compiling any meta shaders, so this needs to be done earlier. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26948>
This commit is contained in:
parent
10a25f39df
commit
dc857e5c9e
1 changed files with 11 additions and 11 deletions
|
|
@ -970,6 +970,17 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
device->mesh_fast_launch_2 = (device->instance->perftest_flags & RADV_PERFTEST_GS_FAST_LAUNCH_2) &&
|
||||
device->physical_device->rad_info.gfx_level >= GFX11;
|
||||
|
||||
device->disable_trunc_coord = device->instance->drirc.disable_trunc_coord;
|
||||
|
||||
if (device->instance->vk.app_info.engine_name && !strcmp(device->instance->vk.app_info.engine_name, "DXVK")) {
|
||||
/* For DXVK 2.3.0 and older, use dualSrcBlend to determine if this is D3D9. */
|
||||
bool is_d3d9 = !dual_src_blend;
|
||||
if (device->instance->vk.app_info.engine_version > VK_MAKE_VERSION(2, 3, 0))
|
||||
is_d3d9 = device->instance->vk.app_info.app_version & 0x1;
|
||||
|
||||
device->disable_trunc_coord &= !is_d3d9;
|
||||
}
|
||||
|
||||
/* The maximum number of scratch waves. Scratch space isn't divided
|
||||
* evenly between CUs. The number is only a function of the number of CUs.
|
||||
* We can decrease the constant to decrease the scratch buffer size.
|
||||
|
|
@ -1162,17 +1173,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
fprintf(stderr, "radv: Forcing anisotropy filter to %ix\n", 1 << util_logbase2(device->force_aniso));
|
||||
}
|
||||
|
||||
device->disable_trunc_coord = device->instance->drirc.disable_trunc_coord;
|
||||
|
||||
if (device->instance->vk.app_info.engine_name && !strcmp(device->instance->vk.app_info.engine_name, "DXVK")) {
|
||||
/* For DXVK 2.3.0 and older, use dualSrcBlend to determine if this is D3D9. */
|
||||
bool is_d3d9 = !dual_src_blend;
|
||||
if (device->instance->vk.app_info.engine_version > VK_MAKE_VERSION(2, 3, 0))
|
||||
is_d3d9 = device->instance->vk.app_info.app_version & 0x1;
|
||||
|
||||
device->disable_trunc_coord &= !is_d3d9;
|
||||
}
|
||||
|
||||
if (use_perf_counters) {
|
||||
size_t bo_size = PERF_CTR_BO_PASS_OFFSET + sizeof(uint64_t) * PERF_CTR_MAX_PASSES;
|
||||
result = device->ws->buffer_create(device->ws, bo_size, 4096, RADEON_DOMAIN_GTT,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue