OSDN Git Service

tgsi: fix the src type of TGSI_OPCODE_MEMBAR
authorMarek Olšák <marek.olsak@amd.com>
Fri, 2 Dec 2016 18:17:52 +0000 (19:17 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 7 Dec 2016 18:40:29 +0000 (19:40 +0100)
It's a literal integer. The next commit will need this.

Cc: 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/tgsi/tgsi_info.c

index 18e1bc8..37549aa 100644 (file)
@@ -485,6 +485,7 @@ tgsi_opcode_infer_src_type( uint opcode )
    case TGSI_OPCODE_UMUL_HI:
    case TGSI_OPCODE_UP2H:
    case TGSI_OPCODE_U2I64:
+   case TGSI_OPCODE_MEMBAR:
       return TGSI_TYPE_UNSIGNED;
    case TGSI_OPCODE_IMUL_HI:
    case TGSI_OPCODE_I2F: