X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Filo%2Filo_common.h;h=dd31f749bbfc4de27e70ce9eeed8c5544166a0fd;hb=dfa25ea5cd19d5a050a1c94bd7370a2259b9f007;hp=7e6932ac12c479d4311328974cdf05d2e7f83845;hpb=e74d67738d2e10a5119298bb10c413cbe66b3255;p=mesa.git diff --git a/src/gallium/drivers/ilo/ilo_common.h b/src/gallium/drivers/ilo/ilo_common.h index 7e6932ac12c..dd31f749bbf 100644 --- a/src/gallium/drivers/ilo/ilo_common.h +++ b/src/gallium/drivers/ilo/ilo_common.h @@ -43,15 +43,42 @@ #define ILO_GEN(gen) ((int) (gen * 100)) #define ILO_GEN_GET_MAJOR(gen) (gen / 100) +/* enable debug flags affecting hot pathes only with debug builds */ +#ifdef DEBUG +#define ILO_DEBUG_HOT 1 +#else +#define ILO_DEBUG_HOT 0 +#endif + enum ilo_debug { ILO_DEBUG_3D = 1 << 0, ILO_DEBUG_VS = 1 << 1, ILO_DEBUG_GS = 1 << 2, ILO_DEBUG_FS = 1 << 3, ILO_DEBUG_CS = 1 << 4, + ILO_DEBUG_DRAW = ILO_DEBUG_HOT << 5, + ILO_DEBUG_FLUSH = 1 << 6, + + /* flags that affect the behaviors of the driver */ + ILO_DEBUG_NOHW = 1 << 20, + ILO_DEBUG_NOCACHE = 1 << 21, + ILO_DEBUG_NOHIZ = 1 << 22, +}; + +struct ilo_dev_info { + /* these mirror intel_winsys_info */ + int devid; + int max_batch_size; + bool has_llc; + bool has_address_swizzling; + bool has_logical_context; + bool has_ppgtt; + bool has_timestamp; + bool has_gen7_sol_reset; - ILO_DEBUG_NOHW = 1 << 8, - ILO_DEBUG_NOCACHE = 1 << 9, + int gen; + int gt; + int urb_size; }; extern int ilo_debug;