diff options
author | Pierre Moreau <[email protected]> | 2017-05-06 23:47:20 +0200 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-05-07 10:26:36 -0400 |
commit | b490ca9a387dabc6447a3e8f68a185fdd9852692 (patch) | |
tree | 16096c2bf41085900215bb4beb69b40bbc5fbb5d /src/gallium/drivers/nouveau | |
parent | c297e688280c7a2a26f7d3885173eb8d8f67972b (diff) |
nv50/ir: Fail if encountering unknown shader type
Signed-off-by: Pierre Moreau <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp index b67a1ddbd59..1f640a348a5 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp @@ -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); |