mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
glsl: replace unreachable code path with assert
The lower_named_interface_blocks() pass is called before we try assign locations to varyings so this shouldn't be reachable. Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
cf757f48ea
commit
124c9c2b97
1 changed files with 4 additions and 5 deletions
|
|
@ -1295,13 +1295,12 @@ public:
|
|||
|
||||
void process(ir_variable *var)
|
||||
{
|
||||
/* All named varying interface blocks should be flattened by now */
|
||||
assert(!var->is_interface_instance());
|
||||
|
||||
this->toplevel_var = var;
|
||||
this->varying_floats = 0;
|
||||
if (var->is_interface_instance())
|
||||
program_resource_visitor::process(var->get_interface_type(),
|
||||
var->get_interface_type()->name);
|
||||
else
|
||||
program_resource_visitor::process(var);
|
||||
program_resource_visitor::process(var);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue