Mesa (master): anv: reuse define for number of render target assert

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 22 15:56:31 UTC 2021


Module: Mesa
Branch: master
Commit: 74685c8136d9a188764dc7c68675996f19c67248
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=74685c8136d9a188764dc7c68675996f19c67248

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed Mar 31 23:35:19 2021 +0300

anv: reuse define for number of render target assert

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/genX_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 3762963d8fc..0250f53d66d 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1191,7 +1191,7 @@ emit_cb_state(struct anv_graphics_pipeline *pipeline,
          break;
 
       /* We can have at most 8 attachments */
-      assert(i < 8);
+      assert(i < MAX_RTS);
 
       if (info == NULL || binding->index >= info->attachmentCount) {
          state_pos = write_disabled_blend(state_pos);



More information about the mesa-commit mailing list