From 5ecc06ef20efd70f35f7100b4e42bb22dc262b38 Mon Sep 17 00:00:00 2001 From: Mark Menzynski Date: Mon, 20 Jul 2020 16:03:36 +0200 Subject: [PATCH] nv50/ir: Use a bit field in info_out structure This will decrease structure size. Signed-off-by: Mark Menzynski Reviewed-by: Karol Herbst Part-of: --- .../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; -- 2.30.2