anv/gen7: Fix command parser version test with indirect dispatch
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 29 Mar 2016 05:26:47 +0000 (22:26 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 29 Mar 2016 05:30:33 +0000 (22:30 -0700)
Caught-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/genX_cmd_buffer.c

index 35c46008a8431079e78eb2df0c99f0406e8585ec..d642832dd57cbb2e9191407db5383ecedc291a0e 100644 (file)
@@ -721,7 +721,7 @@ void genX(CmdDispatchIndirect)(
    /* Linux 4.4 added command parser version 5 which allows the GPGPU
     * indirect dispatch registers to be written.
     */
-   if (verify_cmd_parser(cmd_buffer->device, 5, "vkCmdDispatchIndirect"))
+   if (!verify_cmd_parser(cmd_buffer->device, 5, "vkCmdDispatchIndirect"))
       return;
 #endif