Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4548 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | free(intel->batch.cpu_map); |
66 | free(intel->batch.cpu_map); |
67 | drm_intel_bo_unreference(intel->batch.last_bo); |
67 | drm_intel_bo_unreference(intel->batch.last_bo); |
68 | drm_intel_bo_unreference(intel->batch.bo); |
68 | drm_intel_bo_unreference(intel->batch.bo); |
69 | } |
69 | } |
Line -... | Line 70... | ||
- | 70 | ||
70 | 71 | #if 0 |
|
71 | static void |
72 | static void |
72 | do_batch_dump(struct intel_context *intel) |
73 | do_batch_dump(struct intel_context *intel) |
73 | { |
74 | { |
74 | struct drm_intel_decode *decode; |
75 | struct drm_intel_decode *decode; |
Line 105... | Line 106... | ||
105 | 106 | ||
106 | if (intel->vtbl.debug_batch != NULL) |
107 | if (intel->vtbl.debug_batch != NULL) |
107 | intel->vtbl.debug_batch(intel); |
108 | intel->vtbl.debug_batch(intel); |
108 | } |
109 | } |
- | 110 | } |
|
Line 109... | Line 111... | ||
109 | } |
111 | #endif |
110 | 112 | ||
111 | /* TODO: Push this whole function into bufmgr. |
113 | /* TODO: Push this whole function into bufmgr. |
112 | */ |
114 | */ |
Line 125... | Line 127... | ||
125 | ret = drm_intel_bo_mrb_exec(batch->bo, 4 * batch->used, NULL, 0, 0, |
127 | ret = drm_intel_bo_mrb_exec(batch->bo, 4 * batch->used, NULL, 0, 0, |
126 | I915_EXEC_RENDER); |
128 | I915_EXEC_RENDER); |
127 | } |
129 | } |
128 | } |
130 | } |
Line 129... | Line 131... | ||
129 | 131 | ||
130 | if (unlikely(INTEL_DEBUG & DEBUG_BATCH)) |
132 | // if (unlikely(INTEL_DEBUG & DEBUG_BATCH)) |
Line 131... | Line 133... | ||
131 | do_batch_dump(intel); |
133 | // do_batch_dump(intel); |
132 | 134 | ||
133 | if (ret != 0) { |
135 | if (ret != 0) { |
134 | fprintf(stderr, "intel_do_flush_locked failed: %s\n", strerror(-ret)); |
136 | fprintf(stderr, "intel_do_flush_locked failed: %s\n", strerror(-ret)); |