i965: Let batchbuffers be placed anywhere in the 48-bit address space.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Apr 2018 08:23:15 +0000 (01:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Apr 2018 18:34:19 +0000 (11:34 -0700)
We were trying to mark batch buffers with EXEC_OBJECT_CAPTURE, and
accidentally stomped EXEC_OBJECT_SUPPORTS_48B_ADDRESS in the process.

There's no reason to restrict batch buffers to the lower 4GB.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/intel_batchbuffer.c

index a29159e41bab591ec068485bd0c4b3dc45822456..d745c2a31138e8e28f134c6a6fb39ef3631fed14 100644 (file)
@@ -191,7 +191,7 @@ recreate_growing_buffer(struct brw_context *brw,
    struct brw_bufmgr *bufmgr = screen->bufmgr;
 
    grow->bo = brw_bo_alloc(bufmgr, name, size);
-   grow->bo->kflags = can_do_exec_capture(screen) ? EXEC_OBJECT_CAPTURE : 0;
+   grow->bo->kflags |= can_do_exec_capture(screen) ? EXEC_OBJECT_CAPTURE : 0;
    grow->partial_bo = NULL;
    grow->partial_bo_map = NULL;
    grow->partial_bytes = 0;