[Mesa-dev] [PATCH v3 31/48] intel/cs: Re-run final NIR optimizations for each SIMD size

Iago Toral itoral at igalia.com
Fri Oct 27 10:03:01 UTC 2017


This should be squashed into the previous commit

On Wed, 2017-10-25 at 16:26 -0700, Jason Ekstrand wrote:
> With the advent of SPIR-V subgroup operations, compute shaders will
> have
> to be slightly different depending on the SIMD size at which they
> execute.  In order to allow us to do dispatch-width specific things
> in
> NIR, we re-run the final NIR stages for each sIMD width.
> 
> As a side-effect of this change, we start using ralloc on fs_visitor
> so
> we need to add DECLARE_RALLOC_OPERATORS to fs_visitor.
> ---
>  src/intel/compiler/brw_fs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/intel/compiler/brw_fs.h
> b/src/intel/compiler/brw_fs.h
> index d3ab385..9ff06b6 100644
> --- a/src/intel/compiler/brw_fs.h
> +++ b/src/intel/compiler/brw_fs.h
> @@ -60,7 +60,7 @@ offset(const fs_reg &reg, const brw::fs_builder
> &bld, unsigned delta)
>  class fs_visitor : public backend_shader
>  {
>  public:
> -   DECLARE_RALLOC_CXX_OPERATORS(fs_reg)
> +   DECLARE_RALLOC_CXX_OPERATORS(fs_visitor)
>  
>     fs_visitor(const struct brw_compiler *compiler, void *log_data,
>                void *mem_ctx,


More information about the mesa-dev mailing list