[Mesa-dev] [PATCH 1/2] gallium: add PIPE_COMPUTE_CAP_SUBGROUP_SIZE

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Fri Jun 5 00:24:47 PDT 2015


Hello,

On Thu, May 28, 2015 at 1:04 PM, Grigori Goronzy <greg at chown.ath.cx> wrote:
> @@ -286,6 +287,13 @@ ilo_get_compute_param(struct pipe_screen *screen,
>        ptr = &val.images_supported;
>        size = sizeof(val.images_supported);
>        break;
> +   case PIPE_COMPUTE_CAP_SUBGROUP_SIZE:
> +      /* best case is SIMD32 */
> +      val.subgroup_size = 32;
> +
> +      ptr = &val.subgroup_size;
> +      size = sizeof(val.subgroup_size);
> +      break;
>     default:
>        ptr = NULL;
>        size = 0;

Everything else seems fine to me, but IIRC Intel's IGPs have a SIMD
width of 16, not 32. (Or if it depends on generation, we should
probably have a lookup function like for r600).

-- 
Giuseppe "Oblomov" Bilotta


More information about the mesa-dev mailing list