nir: reduce memory footprint of glsl_struct_field's precision
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 Nov 2015 09:23:42 +0000 (10:23 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 17 Nov 2015 09:36:41 +0000 (10:36 +0100)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/nir/glsl_types.h

index d841a3277db7c878ecf3884b81da23fe3a6a3016..2d44059cca5be9ebcb77c73f8334685ad7825291 100644 (file)
@@ -837,7 +837,7 @@ struct glsl_struct_field {
    /**
     * Precision qualifier
     */
-   unsigned precision;
+   unsigned precision:2;
 
    /**
     * Image qualifiers, applicable to buffer variables defined in shader