At least the gallium blitter helper will call us to draw with
tessellation shaders set but a non-patch primitive.
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
.info = info,
.key = {
.vs = ctx->prog.vs,
- .hs = ctx->prog.hs,
- .ds = ctx->prog.ds,
.gs = ctx->prog.gs,
.fs = ctx->prog.fs,
.key = {
};
if (info->mode == PIPE_PRIM_PATCHES) {
+ emit.key.hs = ctx->prog.hs;
+ emit.key.ds = ctx->prog.ds;
+
shader_info *ds_info = &emit.key.ds->nir->info;
switch (ds_info->tess.primitive_mode) {
case GL_ISOLINES: