tgsi: add precise flag to tgsi_instruction
authorKarol Herbst <karolherbst@gmail.com>
Fri, 23 Jun 2017 18:30:20 +0000 (20:30 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 22 Jul 2017 03:45:18 +0000 (23:45 -0400)
Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/include/pipe/p_shader_tokens.h

index 00843241f8839ec364814e5e22ba8b6fb0f89f29..55e4d064edcc43dabdeb48f1b339473e50932d79 100644 (file)
@@ -642,6 +642,7 @@ tgsi_default_instruction( void )
    instruction.Label = 0;
    instruction.Texture = 0;
    instruction.Memory = 0;
+   instruction.Precise = 0;
    instruction.Padding = 0;
 
    return instruction;
index 1e08d973297b04af273c1c4472f1a88c4bb1f25c..aa0fb3e3b3e032a262299c84138d93e9c7c09e58 100644 (file)
@@ -638,7 +638,8 @@ struct tgsi_instruction
    unsigned Label      : 1;
    unsigned Texture    : 1;
    unsigned Memory     : 1;
-   unsigned Padding    : 2;
+   unsigned Precise    : 1;
+   unsigned Padding    : 1;
 };
 
 /*