radv: remove an old workaround for D3D9 with DXVK 2.3.0 and older
Proton 8.x+ uses this DXVK version but Proton 9.x+ is the default now. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34425>
This commit is contained in:
committed by
Marge Bot
parent
0df8c4f20c
commit
65d717b45a
@@ -1250,10 +1250,8 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
||||
device->disable_trunc_coord = instance->drirc.disable_trunc_coord;
|
||||
|
||||
if (instance->vk.app_info.engine_name && !strcmp(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 = !device->vk.enabled_features.dualSrcBlend;
|
||||
if (instance->vk.app_info.engine_version > VK_MAKE_VERSION(2, 3, 0))
|
||||
is_d3d9 = instance->vk.app_info.app_version & 0x1;
|
||||
/* Since 2.3.1+, DXVK uses the application version to notice the driver about D3D9. */
|
||||
const bool is_d3d9 = instance->vk.app_info.app_version & 0x1;
|
||||
|
||||
device->disable_trunc_coord &= !is_d3d9;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user