32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From fdcfa55e2ab338da81a1173b88cf7619cb6cf48a Mon Sep 17 00:00:00 2001
|
|
From: Imagination Technologies <powervr@imgtec.com>
|
|
Date: Thu, 24 Nov 2022 15:52:18 +0100
|
|
Subject: [PATCH 115/168] gallium/draw: assert shader-stage
|
|
|
|
Nobody calls this for the wrong shader-stage. Let's turn that check into
|
|
an assert instead.
|
|
|
|
Reviewed-by: Emma Anholt <emma@anholt.net>
|
|
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20096>
|
|
---
|
|
src/gallium/auxiliary/nir/nir_draw_helpers.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/src/gallium/auxiliary/nir/nir_draw_helpers.c b/src/gallium/auxiliary/nir/nir_draw_helpers.c
|
|
index 1e70ef72315..a3f4de32d9c 100644
|
|
--- a/src/gallium/auxiliary/nir/nir_draw_helpers.c
|
|
+++ b/src/gallium/auxiliary/nir/nir_draw_helpers.c
|
|
@@ -192,8 +192,7 @@ void
|
|
nir_lower_aaline_fs(struct nir_shader *shader, int *varying)
|
|
{
|
|
lower_aaline state;
|
|
- if (shader->info.stage != MESA_SHADER_FRAGMENT)
|
|
- return;
|
|
+ assert(shader->info.stage == MESA_SHADER_FRAGMENT);
|
|
|
|
int highest_location = -1, highest_drv_location = -1;
|
|
nir_foreach_shader_in_variable(var, shader) {
|
|
--
|
|
2.17.1
|
|
|