[Mesa-dev] [PATCH 11/18] i965/cs: Add BRW_NEW_CS_PROG_DATA and BRW_CACHE_CS_PROG

Kristian Høgsberg krh at bitplanet.net
Mon Apr 13 17:43:50 PDT 2015


On Sat, Mar 14, 2015 at 9:54 PM, Jordan Justen
<jordan.l.justen at intel.com> wrote:
> 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_dump.c   | 3 +++
>  src/mesa/drivers/dri/i965/brw_state_upload.c | 1 +
>  3 files changed, 6 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
> index bfcd911..fb24f0e 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.h
> +++ b/src/mesa/drivers/dri/i965/brw_context.h
> @@ -165,6 +165,7 @@ enum brw_cache_id {
>     BRW_CACHE_FF_GS_PROG,
>     BRW_CACHE_GS_PROG,
>     BRW_CACHE_CLIP_PROG,
> +   BRW_CACHE_CS_PROG,
>
>     BRW_MAX_CACHE
>  };
> @@ -246,6 +247,7 @@ enum brw_state_id {
>  #define BRW_NEW_FF_GS_PROG_DATA         (1ull << BRW_CACHE_FF_GS_PROG)
>  #define BRW_NEW_GS_PROG_DATA            (1ull << BRW_CACHE_GS_PROG)
>  #define BRW_NEW_CLIP_PROG_DATA          (1ull << BRW_CACHE_CLIP_PROG)
> +#define BRW_NEW_CS_PROG_DATA            (1ull << BRW_CACHE_CS_PROG)
>  #define BRW_NEW_URB_FENCE               (1ull << BRW_STATE_URB_FENCE)
>  #define BRW_NEW_FRAGMENT_PROGRAM        (1ull << BRW_STATE_FRAGMENT_PROGRAM)
>  #define BRW_NEW_GEOMETRY_PROGRAM        (1ull << BRW_STATE_GEOMETRY_PROGRAM)
> diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c
> index 8b32810..3ebe1de 100644
> --- a/src/mesa/drivers/dri/i965/brw_state_dump.c
> +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c
> @@ -490,6 +490,9 @@ dump_prog_cache(struct brw_context *brw)
>          case BRW_CACHE_FS_PROG:
>             name = "FS kernel";
>             break;
> +         case BRW_CACHE_CS_PROG:
> +            name = "CS kernel";
> +            break;
>          default:
>             name = "unknown";
>             break;
> diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
> index 024e04a..25f2ff0 100644
> --- a/src/mesa/drivers/dri/i965/brw_state_upload.c
> +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
> @@ -531,6 +531,7 @@ static struct dirty_bit_map brw_bits[] = {
>     DEFINE_BIT(BRW_NEW_FF_GS_PROG_DATA),
>     DEFINE_BIT(BRW_NEW_GS_PROG_DATA),
>     DEFINE_BIT(BRW_NEW_CLIP_PROG_DATA),
> +   DEFINE_BIT(BRW_NEW_CS_PROG_DATA),
>     DEFINE_BIT(BRW_NEW_URB_FENCE),
>     DEFINE_BIT(BRW_NEW_FRAGMENT_PROGRAM),
>     DEFINE_BIT(BRW_NEW_GEOMETRY_PROGRAM),
> --
> 2.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list