intel/batch-decoder: fix vertex buffer size calculation for gen<8
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Thu, 24 Jan 2019 10:28:29 +0000 (12:28 +0200)
committerAndrii Simiklit <andrii.simiklit@globallogic.com>
Fri, 25 Jan 2019 13:12:07 +0000 (15:12 +0200)
commitdb39a44f105213e5e648a17ba94fca965cb19654
tree750e399746cd2e4e3324d8b668d448628541fa3e
parent69e944036720d826d0548a019f8fe18b9ed57e6e
intel/batch-decoder: fix vertex buffer size calculation for gen<8

It should be incremented by one according to
how it is calculated by 'emit_vertex_buffer_state':
  "\#if GEN_GEN < 8
      .BufferAccessType = step_rate ? INSTANCEDATA : VERTEXDATA,
      .InstanceDataStepRate = step_rate,
   \#if GEN_GEN >= 5
      .EndAddress = ro_bo(bo, end_offset - 1),
   \#endif
   \#endif"

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109449
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_batch_decoder.c