tgsi: reduce tgsi_opcode_info::pre_dedent and post_indent to 1 bit
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 1 Aug 2017 20:48:08 +0000 (22:48 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 23 Aug 2017 11:54:47 +0000 (13:54 +0200)
It's not clear why they were ever 2 bits to begin with. Perhaps
the original intent was to use signed values, but that doesn't
seem to have ever been the case in master.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_info.h

index e60888fec8a074d77c669ee49f7df87ebd7f0ee1..e65f7ac3b7464bc6283941af145e59da011588d9 100644 (file)
@@ -76,8 +76,8 @@ struct tgsi_opcode_info
    unsigned is_tex:1;
    unsigned is_store:1;
    unsigned is_branch:1;
-   int pre_dedent:2;
-   int post_indent:2;
+   unsigned pre_dedent:1;
+   unsigned post_indent:1;
    enum tgsi_output_mode output_mode:3;
    const char *mnemonic;
    uint opcode;