i965/gen8: Include the buffer offset when emitting renderbuffer relocs
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 27 Jan 2015 22:06:44 +0000 (14:06 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 28 Jan 2015 09:28:31 +0000 (01:28 -0800)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88792
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen8_surface_state.c

index 45c35db0a4d006b38178fb8bcc076d3028b99fd1..639382f42091d023bc3a11cb114f857cc2d84dfc 100644 (file)
@@ -450,7 +450,7 @@ gen8_update_renderbuffer_surface(struct brw_context *brw,
    drm_intel_bo_emit_reloc(brw->batch.bo,
                            brw->wm.base.surf_offset[surf_index] + 8 * 4,
                            mt->bo,
-                           0,
+                           mt->offset,
                            I915_GEM_DOMAIN_RENDER,
                            I915_GEM_DOMAIN_RENDER);
 }