Mesa (master): nv50/ir: Use a bit field in info_out structure
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 25 19:04:38 UTC 2020
Module: Mesa
Branch: master
Commit: 5ecc06ef20efd70f35f7100b4e42bb22dc262b38
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ecc06ef20efd70f35f7100b4e42bb22dc262b38
Author: Mark Menzynski <mmenzyns at redhat.com>
Date: Mon Jul 20 16:03:36 2020 +0200
nv50/ir: Use a bit field in info_out structure
This will decrease structure size.
Signed-off-by: Mark Menzynski <mmenzyns at redhat.com>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4264>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h
index 09079a4fb82..0e61e031b8e 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h
@@ -174,14 +174,14 @@ struct nv50_ir_prog_info_out
} 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;
More information about the mesa-commit
mailing list