radeonsi: Bugfix needed for hashcat
authorChristian Inci <chris.bugsfd@broke-the-inter.net>
Mon, 19 Dec 2016 22:26:35 +0000 (23:26 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 22 Dec 2016 16:11:43 +0000 (17:11 +0100)
commit7a4ea95f1c5257e79a7a207eccff81c558c04d46
tree5c5cac8f65ade019974b19cdabbc800d9c3f1667
parenteca57f85ee1f47b32daa641a19d8d386c58eb1de
radeonsi: Bugfix needed for hashcat

Hashcat needs MAX_GLOBAL_BUFFERS to be 21 or even 22 for some modes. It'll crash otherwise.
I'm adding an assert to see if programs need it to be even higher.

Signed-off-by: Christian Inci <chris.bugsfd@broke-the-inter.net>
[Handle first properly; should be NFC, since clover always uses first == 0.]
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_compute.c