From: Jordan Justen Date: Sun, 25 Jan 2015 05:35:54 +0000 (-0800) Subject: i965/cs: Add BRW_NEW_CS_PROG_DATA and BRW_CACHE_CS_PROG X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f002176d5d3b982787e8109a419de929fd77a2b7;p=mesa.git i965/cs: Add BRW_NEW_CS_PROG_DATA and BRW_CACHE_CS_PROG Signed-off-by: Jordan Justen Reviewed-by: Kristian Høgsberg Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index bd253efb3e2..f131c7003ff 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -164,6 +164,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 }; @@ -245,6 +246,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 5cf70eb7a20..530f5a8b76e 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 435f75907b0..5c5420d2e82 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -541,6 +541,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),