aubinator: Multiply count by 4 to compute buffer sizes

The count field is in terms of dwords and not bytes.  In
7d4007d58a, I fixed one instance
of this but missed another.
This commit is contained in:
Jason Ekstrand 2018-01-29 20:48:57 -08:00
parent 2e746bc63d
commit 589e9db23f

View file

@ -386,7 +386,7 @@ get_gen_batch_bo(void *user_data, uint64_t address)
{
for (int s = 0; s < MAX_SECTIONS; s++) {
if (sections[s].gtt_offset <= address &&
address < sections[s].gtt_offset + sections[s].count) {
address < sections[s].gtt_offset + sections[s].count * 4) {
return (struct gen_batch_decode_bo) {
.addr = sections[s].gtt_offset,
.map = sections[s].data,