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:
Pierre Moreau
2017-05-06 23:47:20 +02:00
committed by Ilia Mirkin
parent c297e68828
commit b490ca9a38

View File

@@ -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);