[Mesa-dev] [PATCH 17/28] i965/blorp: Add a helper for compiling NIR shaders

Pohjolainen, Topi topi.pohjolainen at intel.com
Wed May 11 18:06:30 UTC 2016


On Tue, May 10, 2016 at 04:16:37PM -0700, Jason Ekstrand wrote:
> ---
>  src/mesa/drivers/dri/i965/brw_blorp.c | 95 +++++++++++++++++++++++++++++++++++
>  src/mesa/drivers/dri/i965/brw_blorp.h | 10 ++++
>  2 files changed, 105 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
> index 6c3b83a..161fb90 100644
> --- a/src/mesa/drivers/dri/i965/brw_blorp.c
> +++ b/src/mesa/drivers/dri/i965/brw_blorp.c
> @@ -26,6 +26,8 @@
>  #include "intel_fbo.h"
>  
>  #include "brw_blorp.h"
> +#include "brw_compiler.h"
> +#include "brw_nir.h"
>  #include "brw_state.h"
>  
>  #define FILE_DEBUG_FLAG DEBUG_BLORP
> @@ -161,6 +163,99 @@ brw_blorp_params_init(struct brw_blorp_params *params)
>     params->num_layers = 1;
>  }
>  
> +void
> +brw_blorp_init_wm_prog_key(struct brw_wm_prog_key *wm_key)
> +{
> +   memset(wm_key, 0, sizeof(*wm_key));
> +   wm_key->nr_color_regions = 1;
> +   for (int i = 0; i < MAX_SAMPLERS; i++)

Could be unsigned.


More information about the mesa-dev mailing list