summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_bo.c
blob: e7a4dac66609d9b4e32090d6469818e556abb603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12


void brw_buffer_subdata()
{
      if (intel->intelScreen->kernel_exec_fencing) {
	 drm_intel_gem_bo_map_gtt(bo);
	 memcpy((char *)bo->virtual + offset, index_buffer->ptr, ib_size);
	 drm_intel_gem_bo_unmap_gtt(bo);
      } else {
	 dri_bo_subdata(bo, offset, ib_size, index_buffer->ptr);
      }
}