diff --git a/src/nouveau/codegen/nv50_ir_driver.h b/src/nouveau/codegen/nv50_ir_driver.h index fdd8b21f086..8a3f637b98e 100644 --- a/src/nouveau/codegen/nv50_ir_driver.h +++ b/src/nouveau/codegen/nv50_ir_driver.h @@ -103,9 +103,6 @@ struct nv50_ir_prog_info uint32_t gridInfoBase; /* base address for NTID,NCTAID */ uint16_t numThreads[3]; /* max number of threads */ } cp; - struct { - uint8_t prespecified_domain; /* MESA_PRIM_{QUADS,TRIANGLES,LINES}, POINTS if unspecified */ - } tese; } prop; struct { diff --git a/src/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index da1f04e8a52..dfe7732bcb4 100644 --- a/src/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -2916,17 +2916,13 @@ NVC0LoweringPass::handleLDST(Instruction *i) void NVC0LoweringPass::readTessCoord(LValue *dst, int c) { - // GLSL requires domain qualifier to be defined in TES while SPIRV allows - // domain to be defined in TES and/or TCS - uint8_t domain = prog->driver_out->prop.tp.domain; - const bool tese_defined_domain = + // In case of SPIRV the domain can be specified in the tesc shader, + // but this should be passed to tese shader by merge_tess_info. + const uint8_t domain = prog->driver_out->prop.tp.domain; + assert( domain == MESA_PRIM_LINES || domain == MESA_PRIM_TRIANGLES || - domain == MESA_PRIM_QUADS; - - if (!tese_defined_domain) { - domain = prog->driver->prop.tese.prespecified_domain; - } + domain == MESA_PRIM_QUADS); Value *laneid = bld.getSSA(); Value *x, *y;