From: Mark Menzynski Date: Mon, 20 Jul 2020 14:03:36 +0000 (+0200) Subject: nv50/ir: Use a bit field in info_out structure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ecc06ef20efd70f35f7100b4e42bb22dc262b38;p=mesa.git 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: --- 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;