brw: move brw_can_coherent_fb_fetch to a C header

this isn't C++ brw code, it's just a devinfo query.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40143>
This commit is contained in:
Alyssa Rosenzweig 2026-02-27 10:55:06 -05:00 committed by Marge Bot
parent d6d1dc5822
commit ef2a95a40a
2 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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