diff --git a/src/gallium/drivers/iris/Android.mk b/src/gallium/drivers/iris/Android.mk index 12a3afab7bd..374f92623f4 100644 --- a/src/gallium/drivers/iris/Android.mk +++ b/src/gallium/drivers/iris/Android.mk @@ -122,7 +122,7 @@ include $(MESA_COMMON_MK) include $(BUILD_STATIC_LIBRARY) # -# libiris for gen12hp +# libiris for gen125 # include $(CLEAR_VARS) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 03c366bd537..11b9c39f2db 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4592,7 +4592,7 @@ iris_store_cs_state(const struct gen_device_info *devinfo, void *map = shader->derived_data; iris_pack_state(GENX(INTERFACE_DESCRIPTOR_DATA), map, desc) { -#if GEN_GEN <= 12 && !GEN_IS_GEN12HP +#if GEN_VERSIONx10 < 125 desc.ConstantURBEntryReadLength = cs_prog_data->push.per_thread.regs; desc.CrossThreadConstantDataReadLength = cs_prog_data->push.cross_thread.regs; @@ -5295,7 +5295,7 @@ iris_restore_compute_saved_bos(struct iris_context *ice, struct iris_bo *bo = iris_resource_bo(shader->assembly.res); iris_use_pinned_bo(batch, bo, false, IRIS_DOMAIN_NONE); - if (GEN_GEN <= 12 && !GEN_IS_GEN12HP) { + if (GEN_VERSIONx10 < 125) { struct iris_bo *curbe_bo = iris_resource_bo(ice->state.last_res.cs_thread_ids); iris_use_pinned_bo(batch, curbe_bo, false, IRIS_DOMAIN_NONE); @@ -6799,7 +6799,7 @@ iris_load_indirect_location(struct iris_context *ice, } } -#if GEN_GEN > 12 || GEN_IS_GEN12HP +#if GEN_VERSIONx10 >= 125 static void iris_upload_compute_walker(struct iris_context *ice, @@ -6861,7 +6861,7 @@ iris_upload_compute_walker(struct iris_context *ice, } -#else /* #if GEN_GEN > 12 || GEN_IS_GEN12HP */ +#else /* #if GEN_VERSIONx10 >= 125 */ static void iris_upload_gpgpu_walker(struct iris_context *ice, @@ -7010,7 +7010,7 @@ iris_upload_gpgpu_walker(struct iris_context *ice, iris_emit_cmd(batch, GENX(MEDIA_STATE_FLUSH), msf); } -#endif /* #if GEN_GEN > 12 || GEN_IS_GEN12HP */ +#endif /* #if GEN_VERSIONx10 >= 125 */ static void iris_upload_compute_state(struct iris_context *ice, @@ -7055,7 +7055,7 @@ iris_upload_compute_state(struct iris_context *ice, genX(invalidate_aux_map_state)(batch); #endif -#if GEN_GEN > 12 || GEN_IS_GEN12HP +#if GEN_VERSIONx10 >= 125 iris_upload_compute_walker(ice, batch, grid); #else iris_upload_gpgpu_walker(ice, batch, grid); diff --git a/src/intel/genxml/gen125.xml b/src/intel/genxml/gen125.xml index 8c2b0600181..316390f6fc7 100644 --- a/src/intel/genxml/gen125.xml +++ b/src/intel/genxml/gen125.xml @@ -1,5 +1,5 @@ - + diff --git a/src/intel/genxml/gen_macros.h b/src/intel/genxml/gen_macros.h index 5212a977651..c8ed70fc3ba 100644 --- a/src/intel/genxml/gen_macros.h +++ b/src/intel/genxml/gen_macros.h @@ -59,7 +59,6 @@ #define GEN_GEN ((GEN_VERSIONx10) / 10) #define GEN_IS_HASWELL ((GEN_VERSIONx10) == 75) #define GEN_IS_G4X ((GEN_VERSIONx10) == 45) -#define GEN_IS_GEN12HP ((GEN_VERSIONx10) == 125) /* Prefixing macros */ #if (GEN_VERSIONx10 == 40) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 407390faf35..087c918598d 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -4477,7 +4477,7 @@ genX(cmd_buffer_flush_compute_state)(struct anv_cmd_buffer *cmd_buffer) &pipeline->cs, 1); cmd_buffer->state.descriptors_dirty &= ~VK_SHADER_STAGE_COMPUTE_BIT; -#if GEN_GEN <= 12 && !GEN_IS_GEN12HP +#if GEN_VERSIONx10 < 125 uint32_t iface_desc_data_dw[GENX(INTERFACE_DESCRIPTOR_DATA_length)]; struct GENX(INTERFACE_DESCRIPTOR_DATA) desc = { .BindingTablePointer = @@ -4506,7 +4506,7 @@ genX(cmd_buffer_flush_compute_state)(struct anv_cmd_buffer *cmd_buffer) comp_state->push_data = anv_cmd_buffer_cs_push_constants(cmd_buffer); -#if GEN_GEN <= 12 && !GEN_IS_GEN12HP +#if GEN_VERSIONx10 < 125 if (comp_state->push_data.alloc_size) { anv_batch_emit(&cmd_buffer->batch, GENX(MEDIA_CURBE_LOAD), curbe) { curbe.CURBETotalDataLength = comp_state->push_data.alloc_size; @@ -4573,7 +4573,7 @@ void genX(CmdDispatch)( genX(CmdDispatchBase)(commandBuffer, 0, 0, 0, x, y, z); } -#if GEN_GEN > 12 || GEN_IS_GEN12HP +#if GEN_VERSIONx10 >= 125 static inline void emit_compute_walker(struct anv_cmd_buffer *cmd_buffer, @@ -4615,7 +4615,7 @@ emit_compute_walker(struct anv_cmd_buffer *cmd_buffer, } } -#else /* #if GEN_GEN > 12 || GEN_IS_GEN12HP */ +#else /* #if GEN_VERSIONx10 >= 125 */ static inline void emit_gpgpu_walker(struct anv_cmd_buffer *cmd_buffer, @@ -4645,7 +4645,7 @@ emit_gpgpu_walker(struct anv_cmd_buffer *cmd_buffer, anv_batch_emit(&cmd_buffer->batch, GENX(MEDIA_STATE_FLUSH), msf); } -#endif /* #if GEN_GEN > 12 || GEN_IS_GEN12HP */ +#endif /* #if GEN_VERSIONx10 >= 125 */ static inline void emit_cs_walker(struct anv_cmd_buffer *cmd_buffer, @@ -4654,7 +4654,7 @@ emit_cs_walker(struct anv_cmd_buffer *cmd_buffer, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ) { -#if GEN_GEN > 12 || GEN_IS_GEN12HP +#if GEN_VERSIONx10 >= 125 emit_compute_walker(cmd_buffer, pipeline, indirect, prog_data, groupCountX, groupCountY, groupCountZ); #else diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 40227d95d7c..3e44c385e79 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -2347,7 +2347,7 @@ genX(graphics_pipeline_create)( return pipeline->base.batch.status; } -#if GEN_GEN > 12 || GEN_IS_GEN12HP +#if GEN_VERSIONx10 >= 125 static void emit_compute_state(struct anv_compute_pipeline *pipeline, @@ -2372,7 +2372,7 @@ emit_compute_state(struct anv_compute_pipeline *pipeline, } } -#else /* #if GEN_GEN > 12 || GEN_IS_GEN12HP */ +#else /* #if GEN_VERSIONx10 >= 125 */ static void emit_compute_state(struct anv_compute_pipeline *pipeline, @@ -2481,7 +2481,7 @@ emit_compute_state(struct anv_compute_pipeline *pipeline, &desc); } -#endif /* #if GEN_GEN > 12 || GEN_IS_GEN12HP */ +#endif /* #if GEN_VERSIONx10 >= 125 */ static VkResult compute_pipeline_create(