nv50/ir: Fail if encountering unknown shader type
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:

committed by
Ilia Mirkin

parent
c297e68828
commit
b490ca9a38
@@ -1214,8 +1214,8 @@ nv50_ir_generate_code(struct nv50_ir_prog_info *info)
|
||||
PROG_TYPE_CASE(FRAGMENT, FRAGMENT);
|
||||
PROG_TYPE_CASE(COMPUTE, COMPUTE);
|
||||
default:
|
||||
type = nv50_ir::Program::TYPE_COMPUTE;
|
||||
break;
|
||||
INFO_DBG(info->dbgFlags, VERBOSE, "unsupported program type %u\n", type);
|
||||
return -1;
|
||||
}
|
||||
INFO_DBG(info->dbgFlags, VERBOSE, "translating program of type %u\n", type);
|
||||
|
||||
|
Reference in New Issue
Block a user