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>
This commit is contained in:

committed by
Marge Bot

parent
7c1b9ee6b7
commit
28d6caad60
@@ -192,8 +192,7 @@ void
|
|||||||
nir_lower_aaline_fs(struct nir_shader *shader, int *varying)
|
nir_lower_aaline_fs(struct nir_shader *shader, int *varying)
|
||||||
{
|
{
|
||||||
lower_aaline state;
|
lower_aaline state;
|
||||||
if (shader->info.stage != MESA_SHADER_FRAGMENT)
|
assert(shader->info.stage == MESA_SHADER_FRAGMENT);
|
||||||
return;
|
|
||||||
|
|
||||||
int highest_location = -1, highest_drv_location = -1;
|
int highest_location = -1, highest_drv_location = -1;
|
||||||
nir_foreach_shader_in_variable(var, shader) {
|
nir_foreach_shader_in_variable(var, shader) {
|
||||||
|
Reference in New Issue
Block a user