anv: Put MOCS in the correct location
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Feb 2019 16:55:37 +0000 (08:55 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Feb 2019 19:03:28 +0000 (11:03 -0800)
commit39aee57523a02552e7eae7df5da488e535aeb1eb
treebd29053ac47f21549734140da2dc8b6ba13cfc31
parent9a918050e0886d8c6d6adc0c687ffd30d8f70b40
anv: Put MOCS in the correct location

My patch to switch from struct-based MOCS to numeric MOCS accidentally
divided all MOCS entries by 2 in the Vulkan driver.

MOCS on Gen9+ is just an array index into a table.  But in the hardware
packets, the index starts at bit 1.  So we need to shift it.

Fixes: 0b44644ca68 (genxml: Consistently use a numeric "MOCS" field)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_private.h