[Mesa-dev] [Mesa-dev, 5/5] i965/cs: Emit texture surfaces to enable CS sampling

Kristian Høgsberg krh at bitplanet.net
Wed Sep 9 16:31:48 PDT 2015


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

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

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

> ---
> src/mesa/drivers/dri/i965/brw_context.h      | 2 +-
>  src/mesa/drivers/dri/i965/brw_state_upload.c | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
> index 51a1447..67ace37 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.h
> +++ b/src/mesa/drivers/dri/i965/brw_context.h
> @@ -1449,7 +1449,7 @@ struct brw_context
>  
>     int num_atoms[BRW_NUM_PIPELINES];
>     const struct brw_tracked_state render_atoms[57];
> -   const struct brw_tracked_state compute_atoms[4];
> +   const struct brw_tracked_state compute_atoms[5];
>  
>     /* If (INTEL_DEBUG & DEBUG_BATCH) */
>     struct {
> diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
> index c2d0ba1..f677826 100644
> --- a/src/mesa/drivers/dri/i965/brw_state_upload.c
> +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
> @@ -253,6 +253,7 @@ static const struct brw_tracked_state *gen7_compute_atoms[] =
>     &brw_state_base_address,
>     &gen7_cs_push_constants,
>     &brw_cs_abo_surfaces,
> +   &brw_texture_surfaces,
>     &brw_cs_state,
>  };
>  
> @@ -337,6 +338,7 @@ static const struct brw_tracked_state *gen8_compute_atoms[] =
>     &gen8_state_base_address,
>     &gen7_cs_push_constants,
>     &brw_cs_abo_surfaces,
> +   &brw_texture_surfaces,
>     &brw_cs_state,
>  };
>  


More information about the mesa-dev mailing list