[Mesa-dev] [Mesa-dev, 2/5] i965: Run vector splitting for CS in brw_link_shader

Kristian Høgsberg krh at bitplanet.net
Wed Sep 9 12:32:20 PDT 2015


Jordan Justen <jordan.l.justen at intel.com> writes:

> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>

I'd change the subject to something like

  i965: Teach is_scalar_shader_stage() about compute shaders

since that's the change in the patch and it affects many other
lowering/optimization  decisions.

With that,

Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>

> ---
> src/mesa/drivers/dri/i965/brw_shader.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
> index 5653d6b..309f495 100644
> --- a/src/mesa/drivers/dri/i965/brw_shader.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
> @@ -185,6 +185,7 @@ is_scalar_shader_stage(struct brw_context *brw, int stage)
>  {
>     switch (stage) {
>     case MESA_SHADER_FRAGMENT:
> +   case MESA_SHADER_COMPUTE:
>        return true;
>     case MESA_SHADER_VERTEX:
>        return brw->intelScreen->compiler->scalar_vs;


More information about the mesa-dev mailing list