diff --git a/src/intel/compiler/brw/brw_eu.h b/src/intel/compiler/brw/brw_eu.h index 12e27cbb5a3..88d37bb347c 100644 --- a/src/intel/compiler/brw/brw_eu.h +++ b/src/intel/compiler/brw/brw_eu.h @@ -1630,6 +1630,13 @@ brw_lsc_supports_base_offset(const struct intel_device_info *devinfo) return devinfo->ver >= 20; } +static inline bool +brw_can_coherent_fb_fetch(const struct intel_device_info *devinfo) +{ + /* Not functional after Gfx20 */ + return devinfo->ver >= 9 && devinfo->ver < 20; +} + #ifdef __cplusplus } #endif diff --git a/src/intel/compiler/brw/brw_shader.h b/src/intel/compiler/brw/brw_shader.h index 220fa3b7408..ee223d93e7c 100644 --- a/src/intel/compiler/brw/brw_shader.h +++ b/src/intel/compiler/brw/brw_shader.h @@ -250,13 +250,6 @@ void brw_print_instruction(const brw_shader &s, const brw_inst *inst, void brw_print_swsb(FILE *f, const struct intel_device_info *devinfo, const tgl_swsb swsb); -static inline bool -brw_can_coherent_fb_fetch(const struct intel_device_info *devinfo) -{ - /* Not functional after Gfx20 */ - return devinfo->ver >= 9 && devinfo->ver < 20; -} - /** * Return the flag register used in fragment shaders to keep track of live * samples. On Gfx7+ we use f1.0-f1.1 to allow discard jumps in SIMD32