Skip to content

Minor __DRIimage fixes for i965

Keith Packard dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2i965: Correct check for re-bound buffer in intel_update_image_buffersrc/mesa/drivers/dri/i965/brw_context.c+15 -40 replies
2/2i965: Set fast color clear mcs_state on newly allocated image miptreessrc/mesa/drivers/dri/i965/intel_mipmap_tree.c+7 -31 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEric Anholt
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Minor __DRIimage fixes for i965

While debugging the libdrm duplicate buffer object adventure, I managed to temporarily understand object lifetimes in the __DRIimage getBuffers path, and also to compare that to the DRI2 getBuffers path. Here are a couple of small fixes.

I haven't looked at the i915 code, but I suspect the first one, and parts of the second one would apply.

[PATCH 1/2] i965: Correct check for re-bound buffer in

The code was attempting to avoid re-creating the miptree when the loader handed back the same bufffer we already had, but it was confused about how to tell -- turns out the object actually shared between the loader and the driver is the BO, not the region. And so, we compare BO pointers to see if the image buffer needs to have a new miptree.

[PATCH 2/2] i965: Set fast color clear mcs_state on newly allocated

Here's a chunk of code that was just missing from the __DRIimage path as a result of rebasing across some new driver additions.

Both of these fixes are candidates for 10.0 as they affect the __DRIimage paths now used by Wayland.

-keith