tgsi/mesa: handle KERNEL case
authorDave Airlie <airlied@redhat.com>
Tue, 10 Dec 2019 04:49:00 +0000 (14:49 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 27 Dec 2019 03:26:32 +0000 (13:26 +1000)
Translate to compute for now.

Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_from_mesa.h

index b4d540baabc69d35a58e023edde09e5981dc9a19..c23e6189bd5d9978c7943f4fe7deec9565d15fdb 100644 (file)
@@ -62,6 +62,7 @@ pipe_shader_type_from_mesa(gl_shader_stage stage)
    case MESA_SHADER_FRAGMENT:
       return PIPE_SHADER_FRAGMENT;
    case MESA_SHADER_COMPUTE:
+   case MESA_SHADER_KERNEL:
       return PIPE_SHADER_COMPUTE;
    default:
       unreachable("bad shader stage");