From: Karol Herbst Date: Sun, 7 Jul 2019 19:27:47 +0000 (+0200) Subject: nvc0: remove nvc0_program.tp.input_patch_size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a110a8090d656152827a1828098624a17f6d7fb7;p=mesa.git nvc0: remove nvc0_program.tp.input_patch_size right now that's dead code Signed-off-by: Karol Herbst Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h index 7c835ceab8d..95b3d633ee6 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h @@ -123,7 +123,6 @@ struct nv50_ir_prog_info bool usesDrawParameters; } vp; struct { - uint8_t inputPatchSize; uint8_t outputPatchSize; uint8_t partitioning; /* PIPE_TESS_PART */ int8_t winding; /* +1 (clockwise) / -1 (counter-clockwise) */ diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c index 1ff9f19f139..180b31ea893 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c @@ -343,8 +343,6 @@ nvc0_tcp_gen_header(struct nvc0_program *tcp, struct nv50_ir_prog_info *info) { unsigned opcs = 6; /* output patch constants (at least the TessFactors) */ - tcp->tp.input_patch_size = info->prop.tp.inputPatchSize; - if (info->numPatchConstants) opcs = 8 + info->numPatchConstants * 4; @@ -374,8 +372,6 @@ nvc0_tcp_gen_header(struct nvc0_program *tcp, struct nv50_ir_prog_info *info) static int nvc0_tep_gen_header(struct nvc0_program *tep, struct nv50_ir_prog_info *info) { - tep->tp.input_patch_size = ~0; - tep->hdr[0] = 0x20061 | (3 << 10); tep->hdr[4] = 0xff000; diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.h b/src/gallium/drivers/nouveau/nvc0/nvc0_program.h index b73822ea9f7..183b14a42c2 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_program.h +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_program.h @@ -54,7 +54,6 @@ struct nvc0_program { } fp; struct { uint32_t tess_mode; /* ~0 if defined by the other stage */ - uint32_t input_patch_size; } tp; struct { uint32_t lmem_size; /* local memory (TGSI PRIVATE resource) size */