[Mesa-dev] [PATCH 1/4] nv50/ir: Fail if encountering unknown shader type
Ilia Mirkin
imirkin at alum.mit.edu
Sat May 6 21:49:02 UTC 2017
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Sat, May 6, 2017 at 5:47 PM, Pierre Moreau <pierre.morrow at free.fr> wrote:
> Signed-off-by: Pierre Moreau <pierre.morrow at free.fr>
> ---
> src/gallium/drivers/nouveau/codegen/nv50_ir.cpp | 4 ++--
> 1 file 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 b67a1ddbd5..1f640a348a 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);
>
> --
> 2.12.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list