intel/compiler: Stop including src/mesa/main/config.h
src/mesa/main includes are for Mesa's OpenGL implementation, and the compiler is used in Vulkan drivers and other tools. We really only needed one #define, which is that we offer 32 samplers. It probably makes more sense to have our own defined limit for that rather than importing a project-wide value which theoretically could be adjusted, so swap MAX_SAMPLERS for a new BRW_MAX_SAMPLERS and call it a day. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17309>
This commit is contained in:

committed by
Marge Bot

parent
434bc468fe
commit
a141a351de
@@ -50,12 +50,12 @@
|
||||
#define KEY_INIT(prefix) \
|
||||
.prefix.program_string_id = ish->program_id, \
|
||||
.prefix.limit_trig_input_range = screen->driconf.limit_trig_input_range
|
||||
#define BRW_KEY_INIT(gen, prog_id, limit_trig_input) \
|
||||
.base.program_string_id = prog_id, \
|
||||
.base.limit_trig_input_range = limit_trig_input, \
|
||||
.base.subgroup_size_type = BRW_SUBGROUP_SIZE_UNIFORM, \
|
||||
.base.tex.swizzles[0 ... MAX_SAMPLERS - 1] = 0x688, \
|
||||
.base.tex.compressed_multisample_layout_mask = ~0, \
|
||||
#define BRW_KEY_INIT(gen, prog_id, limit_trig_input) \
|
||||
.base.program_string_id = prog_id, \
|
||||
.base.limit_trig_input_range = limit_trig_input, \
|
||||
.base.subgroup_size_type = BRW_SUBGROUP_SIZE_UNIFORM, \
|
||||
.base.tex.swizzles[0 ... BRW_MAX_SAMPLERS - 1] = 0x688, \
|
||||
.base.tex.compressed_multisample_layout_mask = ~0, \
|
||||
.base.tex.msaa_16 = (gen >= 9 ? ~0 : 0)
|
||||
|
||||
struct iris_threaded_compile_job {
|
||||
|
Reference in New Issue
Block a user