diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index cd306ad1aa7..da010d5c627 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -254,7 +254,7 @@ iris_destroy_context(struct pipe_context *ctx) } #define genX_call(devinfo, func, ...) \ - switch ((devinfo)->genx10) { \ + switch ((devinfo)->verx10) { \ case 125: \ gen125_##func(__VA_ARGS__); \ break; \ diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 13622fb9bf4..2e246a31eb6 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -59,7 +59,7 @@ #include "iris_monitor.h" #define genX_call(devinfo, func, ...) \ - switch ((devinfo)->genx10) { \ + switch ((devinfo)->verx10) { \ case 125: \ gen125_##func(__VA_ARGS__); \ break; \ diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 335f706abab..30861da0b65 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -7988,7 +7988,7 @@ iris_set_frontend_noop(struct pipe_context *ctx, bool enable) void genX(init_screen_state)(struct iris_screen *screen) { - assert(screen->devinfo.genx10 == GFX_VERx10); + assert(screen->devinfo.verx10 == GFX_VERx10); screen->vtbl.destroy_state = iris_destroy_state; screen->vtbl.init_render_context = iris_init_render_context; screen->vtbl.init_compute_context = iris_init_compute_context; diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 551a3ab21d4..493bf697dd5 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -1623,7 +1623,7 @@ fs_visitor::assign_curb_setup() uint64_t used = 0; - if (stage == MESA_SHADER_COMPUTE && devinfo->genx10 >= 125) { + if (stage == MESA_SHADER_COMPUTE && devinfo->verx10 >= 125) { fs_builder ubld = bld.exec_all().group(8, 0).at( cfg->first_block(), cfg->first_block()->start()); @@ -2270,7 +2270,7 @@ get_subgroup_id_param_index(const gen_device_info *devinfo, if (prog_data->nr_params == 0) return -1; - if (devinfo->genx10 >= 125) + if (devinfo->verx10 >= 125) return -1; /* The local thread id is always the last parameter in the list */ diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index 5ea4c93e3a1..e2547f742c7 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -108,7 +108,7 @@ fs_visitor::nir_setup_uniforms() uniforms = nir->num_uniforms / 4; if ((stage == MESA_SHADER_COMPUTE || stage == MESA_SHADER_KERNEL) && - devinfo->genx10 < 125) { + devinfo->verx10 < 125) { /* Add uniforms for builtins after regular NIR uniforms. */ assert(uniforms == prog_data->nr_params); @@ -3675,7 +3675,7 @@ fs_visitor::nir_emit_cs_intrinsic(const fs_builder &bld, break; case nir_intrinsic_load_subgroup_id: - if (devinfo->genx10 >= 125) + if (devinfo->verx10 >= 125) bld.AND(retype(dest, BRW_REGISTER_TYPE_UD), retype(brw_vec1_grf(0, 2), BRW_REGISTER_TYPE_UD), brw_imm_ud(INTEL_MASK(7, 0))); diff --git a/src/intel/compiler/brw_gen_enum.h b/src/intel/compiler/brw_gen_enum.h index 9d2d0f46400..96063d3e9f2 100644 --- a/src/intel/compiler/brw_gen_enum.h +++ b/src/intel/compiler/brw_gen_enum.h @@ -47,7 +47,7 @@ enum gen { static enum gen gen_from_devinfo(const struct gen_device_info *devinfo) { - switch (devinfo->genx10) { + switch (devinfo->verx10) { case 40: return GEN4; case 45: return GEN45; case 50: return GEN5; diff --git a/src/intel/compiler/test_eu_compact.cpp b/src/intel/compiler/test_eu_compact.cpp index 748299307de..19acb5572cb 100644 --- a/src/intel/compiler/test_eu_compact.cpp +++ b/src/intel/compiler/test_eu_compact.cpp @@ -337,7 +337,7 @@ main(UNUSED int argc, UNUSED char **argv) if (devinfo->gen == 10) continue; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; fail |= run_tests(devinfo); } diff --git a/src/intel/compiler/test_fs_cmod_propagation.cpp b/src/intel/compiler/test_fs_cmod_propagation.cpp index 82e4a3bcb3e..e1171923b22 100644 --- a/src/intel/compiler/test_fs_cmod_propagation.cpp +++ b/src/intel/compiler/test_fs_cmod_propagation.cpp @@ -77,7 +77,7 @@ void cmod_propagation_test::SetUp() v = new cmod_propagation_fs_visitor(compiler, ctx, prog_data, shader); devinfo->gen = 7; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void cmod_propagation_test::TearDown() diff --git a/src/intel/compiler/test_fs_copy_propagation.cpp b/src/intel/compiler/test_fs_copy_propagation.cpp index a4b4a4dacf6..0efe3675cee 100644 --- a/src/intel/compiler/test_fs_copy_propagation.cpp +++ b/src/intel/compiler/test_fs_copy_propagation.cpp @@ -67,7 +67,7 @@ void copy_propagation_test::SetUp() v = new copy_propagation_fs_visitor(compiler, ctx, prog_data, shader); devinfo->gen = 4; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void copy_propagation_test::TearDown() diff --git a/src/intel/compiler/test_fs_saturate_propagation.cpp b/src/intel/compiler/test_fs_saturate_propagation.cpp index cfa35faaf3b..a1b3c1c1144 100644 --- a/src/intel/compiler/test_fs_saturate_propagation.cpp +++ b/src/intel/compiler/test_fs_saturate_propagation.cpp @@ -67,7 +67,7 @@ void saturate_propagation_test::SetUp() v = new saturate_propagation_fs_visitor(compiler, ctx, prog_data, shader); devinfo->gen = 6; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void saturate_propagation_test::TearDown() diff --git a/src/intel/compiler/test_fs_scoreboard.cpp b/src/intel/compiler/test_fs_scoreboard.cpp index abe0a3d9f0d..fa457ca5ce1 100644 --- a/src/intel/compiler/test_fs_scoreboard.cpp +++ b/src/intel/compiler/test_fs_scoreboard.cpp @@ -55,7 +55,7 @@ void scoreboard_test::SetUp() v = new fs_visitor(compiler, NULL, ctx, NULL, &prog_data->base, shader, 8, -1, false); devinfo->gen = 12; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void scoreboard_test::TearDown() diff --git a/src/intel/compiler/test_vec4_cmod_propagation.cpp b/src/intel/compiler/test_vec4_cmod_propagation.cpp index bfdb7121482..ad413c6b4e9 100644 --- a/src/intel/compiler/test_vec4_cmod_propagation.cpp +++ b/src/intel/compiler/test_vec4_cmod_propagation.cpp @@ -110,7 +110,7 @@ void cmod_propagation_test::SetUp() v = new cmod_propagation_vec4_visitor(compiler, ctx, shader, prog_data); devinfo->gen = 4; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void cmod_propagation_test::TearDown() diff --git a/src/intel/compiler/test_vec4_copy_propagation.cpp b/src/intel/compiler/test_vec4_copy_propagation.cpp index d2024f24112..84c9f902c73 100644 --- a/src/intel/compiler/test_vec4_copy_propagation.cpp +++ b/src/intel/compiler/test_vec4_copy_propagation.cpp @@ -102,7 +102,7 @@ void copy_propagation_test::SetUp() v = new copy_propagation_vec4_visitor(compiler, ctx, shader, prog_data); devinfo->gen = 4; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void copy_propagation_test::TearDown() diff --git a/src/intel/compiler/test_vec4_dead_code_eliminate.cpp b/src/intel/compiler/test_vec4_dead_code_eliminate.cpp index cc2823cbc17..efaf8db98de 100644 --- a/src/intel/compiler/test_vec4_dead_code_eliminate.cpp +++ b/src/intel/compiler/test_vec4_dead_code_eliminate.cpp @@ -100,7 +100,7 @@ void dead_code_eliminate_test::SetUp() v = new dead_code_eliminate_vec4_visitor(compiler, ctx, shader, prog_data); devinfo->gen = 4; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void dead_code_eliminate_test::TearDown() diff --git a/src/intel/compiler/test_vec4_register_coalesce.cpp b/src/intel/compiler/test_vec4_register_coalesce.cpp index 95ea4a6c9d0..091dbbb5e73 100644 --- a/src/intel/compiler/test_vec4_register_coalesce.cpp +++ b/src/intel/compiler/test_vec4_register_coalesce.cpp @@ -106,7 +106,7 @@ void register_coalesce_test::SetUp() v = new register_coalesce_vec4_visitor(compiler, ctx, shader, prog_data); devinfo->gen = 4; - devinfo->genx10 = devinfo->gen * 10; + devinfo->verx10 = devinfo->gen * 10; } void register_coalesce_test::TearDown() diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c index ad2a8be69ac..1128da796ee 100644 --- a/src/intel/dev/gen_device_info.c +++ b/src/intel/dev/gen_device_info.c @@ -109,7 +109,7 @@ static const struct gen_device_info gen_device_info_i965 = { static const struct gen_device_info gen_device_info_g4x = { .gen = 4, - .genx10 = 45, + .verx10 = 45, .has_pln = true, .has_compr4 = true, .has_surface_tile_offset = true, @@ -309,7 +309,7 @@ static const struct gen_device_info gen_device_info_byt = { #define HSW_FEATURES \ GEN7_FEATURES, \ .is_haswell = true, \ - .genx10 = 75, \ + .verx10 = 75, \ .supports_simd16_3src = true, \ .has_resource_streamer = true @@ -1279,8 +1279,8 @@ gen_get_device_info_from_pci_id(int pci_id, assert(devinfo->num_slices <= ARRAY_SIZE(devinfo->num_subslices)); - if (devinfo->genx10 == 0) - devinfo->genx10 = devinfo->gen * 10; + if (devinfo->verx10 == 0) + devinfo->verx10 = devinfo->gen * 10; devinfo->chipset_id = pci_id; return true; diff --git a/src/intel/dev/gen_device_info.h b/src/intel/dev/gen_device_info.h index 1df37e01f8f..d38c03ae013 100644 --- a/src/intel/dev/gen_device_info.h +++ b/src/intel/dev/gen_device_info.h @@ -48,7 +48,7 @@ struct gen_device_info { int gen; /**< Generation number: 4, 5, 6, 7, ... */ /* Driver internal number used to differentiate platforms. */ - int genx10; + int verx10; int revision; int gt; diff --git a/src/intel/genxml/gen_bits_header.py b/src/intel/genxml/gen_bits_header.py index f698c9cb6f5..7327185e30d 100644 --- a/src/intel/genxml/gen_bits_header.py +++ b/src/intel/genxml/gen_bits_header.py @@ -79,7 +79,7 @@ from operator import itemgetter static inline uint32_t ATTRIBUTE_PURE ${item.token_name}_${prop}(const struct gen_device_info *devinfo) { - switch (devinfo->genx10) { + switch (devinfo->verx10) { case 125: return ${item.get_prop(prop, 12.5)}; case 120: return ${item.get_prop(prop, 12)}; case 110: return ${item.get_prop(prop, 11)}; diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index 3286c94bfe6..2d0ca723456 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -1067,7 +1067,7 @@ anv_cmd_buffer_cs_push_constants(struct anv_cmd_buffer *cmd_buffer) const unsigned aligned_total_push_constants_size = ALIGN(total_push_constants_size, push_constant_alignment); struct anv_state state; - if (devinfo->genx10 >= 125) { + if (devinfo->verx10 >= 125) { state = anv_state_stream_alloc(&cmd_buffer->general_state_stream, aligned_total_push_constants_size, push_constant_alignment); diff --git a/src/intel/vulkan/anv_nir_compute_push_layout.c b/src/intel/vulkan/anv_nir_compute_push_layout.c index e75b0aaef4f..3e1d5c41611 100644 --- a/src/intel/vulkan/anv_nir_compute_push_layout.c +++ b/src/intel/vulkan/anv_nir_compute_push_layout.c @@ -92,7 +92,7 @@ anv_nir_compute_push_layout(const struct anv_physical_device *pdevice, push_end = MAX2(push_end, push_reg_mask_end); } - if (nir->info.stage == MESA_SHADER_COMPUTE && devinfo->genx10 < 125) { + if (nir->info.stage == MESA_SHADER_COMPUTE && devinfo->verx10 < 125) { /* For compute shaders, we always have to have the subgroup ID. The * back-end compiler will "helpfully" add it for us in the last push * constant slot. Yes, there is an off-by-one error here but that's diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index f71e86c54fc..8dbfa0d8b01 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -4533,7 +4533,7 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(anv_performance_configuration_intel, base, #define anv_genX(devinfo, thing) ({ \ __typeof(&gen9_##thing) genX_thing; \ - switch ((devinfo)->genx10) { \ + switch ((devinfo)->verx10) { \ case 70: \ genX_thing = &gen7_##thing; \ break; \ diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index fdd0b40ee34..7f2a0d4c4f0 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -5924,5 +5924,5 @@ genX(init_atoms)(struct brw_context *brw) brw->vtbl.emit_compute_walker = genX(emit_gpgpu_walker); #endif - assert(brw->screen->devinfo.genx10 == GFX_VERx10); + assert(brw->screen->devinfo.verx10 == GFX_VERx10); }