diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2009-11-06 16:41:58 +0000 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2009-11-06 17:03:01 +0000 |
commit | 0532cc0c86d36f98ae33291847fbd9f2564cbed2 (patch) | |
tree | f361d5f684d4b7c3a4ef89784af5c25d767acbcc /src/gallium/winsys/drm/i965/gem/i965_drm_api.c | |
parent | 2eb6b0defe65b01a7ed1562c2f16c17125242c16 (diff) |
i965g: trivial/clear can now send stuff to hardware
Added a flag if we should send commands to hardware
as what we send isn't all that correct.
Diffstat (limited to 'src/gallium/winsys/drm/i965/gem/i965_drm_api.c')
-rw-r--r-- | src/gallium/winsys/drm/i965/gem/i965_drm_api.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/i965/gem/i965_drm_api.c b/src/gallium/winsys/drm/i965/gem/i965_drm_api.c index 2399835d79..191a733c36 100644 --- a/src/gallium/winsys/drm/i965/gem/i965_drm_api.c +++ b/src/gallium/winsys/drm/i965/gem/i965_drm_api.c @@ -46,11 +46,14 @@ i965_libdrm_buffer_from_handle(struct i965_libdrm_winsys *idws, if (!buf) return NULL; - + pipe_reference_init(&buf->base.reference, 1); buf->bo = drm_intel_bo_gem_create_from_name(idws->gem, name, handle); + buf->base.size = buf->bo->size; + buf->base.sws = &idws->base; buf->flinked = TRUE; buf->flink = handle; + if (!buf->bo) goto err; @@ -177,6 +180,7 @@ i965_libdrm_create_screen(struct drm_api *api, int drmFD, drm_intel_bufmgr_gem_enable_reuse(idws->gem); idws->dump_cmd = debug_get_bool_option("I965_DUMP_CMD", FALSE); + idws->send_cmd = debug_get_bool_option("I965_SEND_CMD", FALSE); return brw_create_screen(&idws->base, deviceID); } |