[Mesa-dev] [PATCH 39/59] anv/device: expose support for shaderFloat16 in gen8+

Jason Ekstrand jason at jlekstrand.net
Fri Dec 7 19:34:02 UTC 2018


Pending review on previous patches.  37 and 39 are

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Tue, Dec 4, 2018 at 1:18 AM Iago Toral Quiroga <itoral at igalia.com> wrote:

> ---
>  src/intel/vulkan/anv_device.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> index 6b5ba25c6bc..caf25ad8a03 100644
> --- a/src/intel/vulkan/anv_device.c
> +++ b/src/intel/vulkan/anv_device.c
> @@ -966,6 +966,15 @@ void anv_GetPhysicalDeviceFeatures2(
>           break;
>        }
>
> +      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR: {
> +         VkPhysicalDeviceFloat16Int8FeaturesKHR *features = (void *)ext;
> +         ANV_FROM_HANDLE(anv_physical_device, pdevice, physicalDevice);
> +
> +         features->shaderFloat16 = pdevice->info.gen >= 8;
> +         features->shaderInt8 = false;
> +         break;
> +      }
> +
>        default:
>           anv_debug_ignored_stype(ext->sType);
>           break;
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181207/80d99a6b/attachment.html>


More information about the mesa-dev mailing list