nvc0: remove nvc0_program.tp.input_patch_size
authorKarol Herbst <kherbst@redhat.com>
Sun, 7 Jul 2019 19:27:47 +0000 (21:27 +0200)
committerKarol Herbst <kherbst@redhat.com>
Tue, 9 Jul 2019 10:41:54 +0000 (12:41 +0200)
right now that's dead code

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h
src/gallium/drivers/nouveau/nvc0/nvc0_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_program.h

index 7c835ceab8df66675962782f41ff33876a15f894..95b3d633ee62ad492709d6e10c96957b883d8483 100644 (file)
@@ -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) */
index 1ff9f19f139a62cedab361df33c635a6cdd48807..180b31ea893132a117053c11838507d43d21dc46 100644 (file)
@@ -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;
 
index b73822ea9f7f2eadf77290e3814aaf830594193e..183b14a42c2c2d2dc010ece70aaef77b7b5a70a0 100644 (file)
@@ -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 */