Mesa (master): anv: drop extension check for dynamic state
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 22 15:56:31 UTC 2021
Module: Mesa
Branch: master
Commit: fab08d65cbdb9f487eccd3d135fe57b06afe6a00
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fab08d65cbdb9f487eccd3d135fe57b06afe6a00
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Thu Apr 22 13:32:08 2021 +0300
anv: drop extension check for dynamic state
Following 505d176a8ebf ("anv: disable baked in pipeline bits from
dynamic emission path") dynamic bits of extensions that are not
enabled should not be there.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10206>
---
src/intel/vulkan/gfx7_cmd_buffer.c | 3 +--
src/intel/vulkan/gfx8_cmd_buffer.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/intel/vulkan/gfx7_cmd_buffer.c b/src/intel/vulkan/gfx7_cmd_buffer.c
index 559a484e2d2..cd0adf7b647 100644
--- a/src/intel/vulkan/gfx7_cmd_buffer.c
+++ b/src/intel/vulkan/gfx7_cmd_buffer.c
@@ -345,8 +345,7 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer)
cmd_buffer->state.gfx.primitive_topology = topology;
}
- if (cmd_buffer->device->vk.enabled_extensions.EXT_sample_locations &&
- cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS) {
+ if (cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS) {
genX(emit_multisample)(&cmd_buffer->batch,
cmd_buffer->state.gfx.dynamic.sample_locations.samples,
cmd_buffer->state.gfx.dynamic.sample_locations.locations);
diff --git a/src/intel/vulkan/gfx8_cmd_buffer.c b/src/intel/vulkan/gfx8_cmd_buffer.c
index dede0e4b7dc..c265563b680 100644
--- a/src/intel/vulkan/gfx8_cmd_buffer.c
+++ b/src/intel/vulkan/gfx8_cmd_buffer.c
@@ -648,8 +648,7 @@ genX(cmd_buffer_flush_dynamic_state)(struct anv_cmd_buffer *cmd_buffer)
}
}
- if (cmd_buffer->device->vk.enabled_extensions.EXT_sample_locations &&
- cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS) {
+ if (cmd_buffer->state.gfx.dirty & ANV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS) {
genX(emit_sample_pattern)(&cmd_buffer->batch,
cmd_buffer->state.gfx.dynamic.sample_locations.samples,
cmd_buffer->state.gfx.dynamic.sample_locations.locations);
More information about the mesa-commit
mailing list