[Mesa-dev] [PATCH 1/1] radv: consider MESA_VK_VERSION_OVERRIDE when setting the api version
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Apr 24 15:00:21 UTC 2019
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 4/24/19 2:54 PM, Bas Nieuwenhuizen wrote:
> Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
>
> On Wed, Apr 24, 2019 at 2:40 PM Eleni Maria Stea <estea at igalia.com> wrote:
>> Before setting the physical device API version, we should check if the
>> MESA_VK_VERSION_OVERRIDE environment variable is set and take it into
>> account.
>> ---
>> src/amd/vulkan/radv_extensions.py | 8 ++++++--
>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py
>> index 9743ce1a774..8f29f4ca40f 100644
>> --- a/src/amd/vulkan/radv_extensions.py
>> +++ b/src/amd/vulkan/radv_extensions.py
>> @@ -333,9 +333,13 @@ VkResult radv_EnumerateInstanceVersion(
>> uint32_t
>> radv_physical_device_api_version(struct radv_physical_device *dev)
>> {
>> + uint32_t override = vk_get_version_override();
>> + uint32_t version = VK_MAKE_VERSION(1, 0, 68);
>> +
>> if (!ANDROID && dev->rad_info.has_syncobj_wait_for_submit)
>> - return ${MAX_API_VERSION.c_vk_version()};
>> - return VK_MAKE_VERSION(1, 0, 68);
>> + version = ${MAX_API_VERSION.c_vk_version()};
>> +
>> + return override ? MIN2(override, version) : version;
>> }
>> """)
>>
>> --
>> 2.20.1
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list