aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_bo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/i965/brw_bo.c')
-rw-r--r--src/gallium/drivers/i965/brw_bo.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_bo.c b/src/gallium/drivers/i965/brw_bo.c
new file mode 100644
index 00000000000..e7a4dac6660
--- /dev/null
+++ b/src/gallium/drivers/i965/brw_bo.c
@@ -0,0 +1,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);
+ }
+}