nv50/ir: Use a bit field in info_out structure
authorMark Menzynski <mmenzyns@redhat.com>
Mon, 20 Jul 2020 14:03:36 +0000 (16:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Aug 2020 18:56:37 +0000 (18:56 +0000)
This will decrease structure size.

Signed-off-by: Mark Menzynski <mmenzyns@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4264>

src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h

index 09079a4fb82bfd3c6e6988cdf28f238d7de4e3ce..0e61e031b8ed8d8cb25f9efb13ac46a740ce9a52 100644 (file)
@@ -174,14 +174,14 @@ struct nv50_ir_prog_info_out
       } gp;
       struct {
          unsigned numColourResults;
       } gp;
       struct {
          unsigned numColourResults;
-         bool writesDepth;
-         bool earlyFragTests;
-         bool postDepthCoverage;
-         bool usesDiscard;
-         bool usesSampleMaskIn;
-         bool readsFramebuffer;
-         bool readsSampleLocations;
-         bool separateFragData;
+         bool writesDepth           : 1;
+         bool earlyFragTests        : 1;
+         bool postDepthCoverage     : 1;
+         bool usesDiscard           : 1;
+         bool usesSampleMaskIn      : 1;
+         bool readsFramebuffer      : 1;
+         bool readsSampleLocations  : 1;
+         bool separateFragData      : 1;
       } fp;
    } prop;
 
       } fp;
    } prop;