intel/eu/validate: SEND restrictions also apply to SENDC
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Nov 2018 22:25:12 +0000 (16:25 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 29 Jan 2019 18:43:55 +0000 (18:43 +0000)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_eu_validate.c

index 26fe2922f0df6a6e25d288ee3a444d133c2a4ce1..5e505992842f6ec1e6da4c9befe08c91e13bfa1c 100644 (file)
@@ -263,7 +263,8 @@ send_restrictions(const struct gen_device_info *devinfo,
 {
    struct string error_msg = { .str = NULL, .len = 0 };
 
-   if (brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SEND) {
+   if (brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SEND ||
+       brw_inst_opcode(devinfo, inst) == BRW_OPCODE_SENDC) {
       ERROR_IF(brw_inst_src0_address_mode(devinfo, inst) != BRW_ADDRESS_DIRECT,
                "send must use direct addressing");