History log of /external/mesa3d/src/mesa/drivers/dri/i965/intel_pixel_read.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4433b0302d0aa9dc61002e8bb4fd1b752b0be338 20-Apr-2012 Brian Paul <brianp@vmware.com> intel: use _mesa_is_winsys/user_fbo() helpers

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
eefff37060de8c2e98c687c9263e783dfe3ac8cc 19-Oct-2011 nobled <nobled@dreamwidth.org> mesa,intel: use _mesa_image_offset() for PBOs

This avoids forming invalid pointers needlessly, which even if
never dereferenced is undefined behavior. It also makes
_mesa_validate_pbo_access() more comprehensible.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
b31bc6b5434b5c27136d2fa4386b2904411eb3f6 15-Nov-2011 Brian Paul <brianp@vmware.com> i965: use _mesa_readpixels() instead of _swrast_ReadPixels()
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
ac6a376f528e4867b8422e42fd36c10e4fa79cfb 19-Oct-2011 Eric Anholt <eric@anholt.net> intel: Don't force a batchbuffer flush in readpixels.

Renderbuffer mapping handles flushing the batchbuffer if required, so
all we need to do is make sure any pending rendering has reached the
batchbuffer.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
2e5a1a254ed81b1d3efa6064f48183eefac784d0 07-Oct-2011 Kenneth Graunke <kenneth@whitecape.org> intel: Convert from GLboolean to 'bool' from stdbool.h.

I initially produced the patch using this bash command:
for file in {intel,i915,i965}/*.{c,cpp,h}; do [ ! -h $file ] && sed -i
's/GLboolean/bool/g' $file && sed -i 's/GL_TRUE/true/g' $file && sed -i
's/GL_FALSE/false/g' $file; done

Then I manually added #include <stdbool.h> to fix compilation errors,
and converted a few functions back to GLboolean that were used in core
Mesa's function pointer table to avoid "incompatible pointer" warnings.

Finally, I cleaned up some whitespace issues introduced by the change.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chad Versace <chad@chad-versace.us>
Acked-by: Paul Berry <stereotype441@gmail.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
8004a1cb95b8a195f3f4bbaa8d39d2f3297167de 22-Sep-2011 Eric Anholt <eric@anholt.net> intel: Rename region->buffer to region->bo, and remove accessor function.

We call all the other drm_intel_bo pointers in intel/*.h "bo", so this
one was rather out of place.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
57ca0803b34587f1148b218a11d2193b0d4f4c97 11-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Skip the flush before read-pixels via blit

As we will flush when reading the return values of the blit, we can forgo
the earlier flush.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
8d68a90e225d831a395ba788e425cb717eec1f9a 10-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: use pwrite for batch

It's faster. Not only is the memcpy more efficiently performed in the
kernel (making up for the system call overhead), but by not using mmap
we remove the greater overhead of tracking the vma of every batch.

And it means we can read back from the batch buffer without incurring
the cost of a uncached read through the GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
e476e122207e6195a16a8c7d2cab90eeba227934 08-Feb-2011 Chris Wilson <chris@chris-wilson.co.uk> intel: Pack dynamic draws together

Dynamic arrays have the tendency to be small and so allocating a bo for
each one is overkill and we can exploit many efficiency gains by packing
them together.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
bb1540835056cdea5db6f55b19c0c87358f14cd1 03-Nov-2010 Eric Anholt <eric@anholt.net> intel: Annotate debug printout checks with unlikely().

This provides the optimizer with hints about code hotness, which we're
quite certain about for debug printouts (or, rather, while we
developers often hit the checks for debug printouts, we don't care
about performance while doing so).
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
c4775a27e3aaa2006b98f225387499b79bc609ef 10-May-2010 Kristian Høgsberg <krh@bitplanet.net> intel: Drop intelFlush()

Now that intel_flush() deosn't use the needs_mi_flush argument, we can
finally drop one of the two flush functions.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
d8cfdbe894be8691242df4e812601320fbf6c5e7 10-May-2010 Kristian Høgsberg <krh@bitplanet.net> intel: Don't mark front buffer dirty if we're only reading

When we call intel_prepare_render() from intelReadPixels(), we'll mark
the front buffer dirty. That's silly, since we're only reading from it
and marking it dirty will cause us to copy from fake front to front
eventually.

Just clear the dirty flag after doing the read.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
298be2b028263b2c343a707662c6fbfa18293cb2 19-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> Replace the _mesa_*printf() wrappers with the plain libc versions
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
d449627829e1a4a3250a1a723af2f4e3cd5fd194 18-Feb-2010 Kristian Høgsberg <krh@bitplanet.net> intel: Implement the DRI2 invalidate function properly

This uses a stamp mechanisms to mark the DRI drawable as invalid.
Instead of immediately updating the buffers we just bump the drawable
stamp and call out to DRI2GetBuffers "later".

"Later" used to be at LOCK_HARDWARE time, and this patch brings back
callouts at the points where we used to call LOCK_HARDWARE. A new function,
intel_prepare_render(), is called where we used to call LOCK_HARDWARE,
and if the buffers are invalid, we call out to DRI2GetBuffers there.

This lets us invalidate buffers only when notified instead of on
every glViewport() call. If the loader calls the DRI invalidate
entrypoint, we disable viewport triggered buffer invalidation.

Additionally, we can clean up the old viewport mechanism a bit,
since we can just invalidate the buffers and not worry about
reentrancy and whatnot.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
f9439e4a4696b8bc5fcdf3ac664f5e8d446f6621 28-Jan-2010 Eric Anholt <eric@anholt.net> intel: Remove long-disabled meta readpixels, and associated meta support.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
c8e6a0f2f8637d803006d207bb2fb8e4292bdb28 27-Jan-2010 Eric Anholt <eric@anholt.net> intel: Use a handy helper in glReadPixels source clipping.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
63b10e8fe71c1de5b0ee9aac72fd7303551f59a0 27-Jan-2010 Eric Anholt <eric@anholt.net> intel: Fix PBO blit ReadPixels from an FBO.

Bug #25921 -- clutter PBO usage gave unreliable results.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
9b22427911ad27efc1f36faee9462c6082d0417c 25-Jan-2010 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_7_branch'

Conflicts:

src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_swapbuffers.c
src/mesa/drivers/dri/r300/r300_emit.c
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_tex.c
src/mesa/drivers/dri/r300/r300_texstate.c
fb6bff3712d71cfe131fbf70154d326cdf39e7c8 23-Jan-2010 Vinson Lee <vlee@vmware.com> intel: Remove unnecessary headers.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
01dc463e5d5513e059eea601710cd4babe02610d 02-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> intel: Drop LOCK/UNLOCK_HARDWARE()
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
d61f07318c8678901b948fdaa8ccdf37aa3203e9 01-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> Remove leftover __DRI{screen,drawable,context}Private references

As part of the DRI driver interface rewrite I merged __DRIscreenPrivate
and __DRIscreen, and likewise for __DRIdrawablePrivate and
__DRIcontextPrivate. I left typedefs in place though, to avoid renaming
all the *Private use internal to the driver. That was probably a
mistake, and it turns out a one-line find+sed combo can do the mass
rename. Better late than never.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
dd9eb8774ad7918187afebf8cd3be6f4b80f0f3b 09-Dec-2009 Eric Anholt <eric@anholt.net> i965: Enable the accelerated ReadPixels path on gen4 along with pre-gen4.

Passes piglit pbo-read-argb8888, and doesn't otherwise regress quick.tests.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
55770d09c18c4d33403abb97dfef4f897efbbe2a 05-Oct-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch'

Conflicts:

src/gallium/auxiliary/util/u_cpu_detect.c
3b7ec94c0db4140f72682f70262baf77be683816 05-Oct-2009 Brian Paul <brianp@vmware.com> intel: use driReadDrawable, not driDrawable in do_blit_readpixels()
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
f194d2737b059cf6b99caa18f8ec2d46a55ada88 04-Oct-2009 Chris Wilson <chris@chris-wilson.co.uk> intel: Suppress a compiler warning for an pointer->int cast

intel_pixel_read.c: In function ‘do_blit_readpixels’:
intel_pixel_read.c:221: warning: cast from pointer to integer of
different size

Cast via an intermediate (GLintptr) instead and hope the result fits
within GLuint... [It should as we simply do not support textures *that*
large!]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
8fd4e4dfc32e4fd44dc41948d0c35ece078d44b3 10-Sep-2009 Ian Romanick <ian.d.romanick@intel.com> Fix merge fail

One of the conflicst from this merge was missed:

commit 0c309bb494b6ee1c403442d1207743f749f95b6e
Merge: c6c44bf d27d659
Author: Brian Paul <brianp@vmware.com>
Date: Wed Sep 9 08:33:39 2009 -0600
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
4d85a6b393503c8e859ff9bcd5011ec5e65ba2b9 09-Sep-2009 Brian Paul <brianp@vmware.com> i965: fix an overlooked merge conflict
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
7bf63473623e01933adc0e8f4464eda8f2860564 09-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_6_branch'
0c309bb494b6ee1c403442d1207743f749f95b6e 09-Sep-2009 Brian Paul <brianp@vmware.com> Merge branch 'mesa_7_5_branch' into mesa_7_6_branch

Conflicts:

Makefile
configs/default
progs/glsl/Makefile
src/gallium/auxiliary/util/u_simple_shaders.c
src/gallium/state_trackers/glx/xlib/xm_api.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/brw_vs_emit.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_pixel.c
src/mesa/drivers/dri/intel/intel_pixel_read.c
src/mesa/main/texenvprogram.c
src/mesa/main/version.h
8e8d3470be3b1aae4ede7ccca097a28b0978dd1b 08-Sep-2009 Brian Paul <brianp@vmware.com> i965: use _mesa_is_bufferobj()

Also, remove unneeded call to _mesa_validate_pbo_access(). It's done by
core Mesa as the comment suggested.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
b2cba25f9eecf2063c3b98d66ade59cd9e50990e 22-Jun-2009 Eric Anholt <eric@anholt.net> i965: Fix warnings in intel_pixel_read.c.
(cherry picked from commit c80ce5ac90b1e0ac7a72cd41c314aa2000bfecf5)
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
2855ee82c6d74066e8d9e44b17b2ce3b5782110e 20-Jun-2009 Eric Anholt <eric@anholt.net> intel: Update Mesa state before span setup in glReadPixels.

We could have mapped the wrong set of draw buffers. Noticed while looking
into a DRI2 glean ReadPixels issue.
(cherry picked from commit afc981ee46791838f3cb83e11eb33938aa3efc83)
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
04081a164ca6160404d87dccbfc641bfd46428e0 20-Jun-2009 Eric Anholt <eric@anholt.net> intel: Move intel_pixel_read.c to shared for use with i965.
(cherry picked from commit dcfe0d66bfff9a55741aee298b7ffb051a48f0d3)
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
8f81a6468fdbc7320800ea497791e3e1b8f782ca 22-Jun-2009 Eric Anholt <eric@anholt.net> intel: Avoid trying to do blits to Y tiled regions.

This is somewhat nasty, but we need to do Y-tiled depth for FBO support.
May help with corruption and hangs since enabling texture tiling, and
since switching depth textures to Y tiled.

Fixes piglit depthtex.c on 965.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
c80ce5ac90b1e0ac7a72cd41c314aa2000bfecf5 22-Jun-2009 Eric Anholt <eric@anholt.net> i965: Fix warnings in intel_pixel_read.c.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
2c36ed90672720966c26a8c27e222ec14b23aae6 22-Jun-2009 Michel Dänzer <michel@daenzer.net> intel: Fix glReadPixels regression since changing context init order.

Fixes regression in dd26899ca39111e0866afed9df94bfb1618dd363 that also
affected some PBO operations.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
afc981ee46791838f3cb83e11eb33938aa3efc83 20-Jun-2009 Eric Anholt <eric@anholt.net> intel: Update Mesa state before span setup in glReadPixels.

We could have mapped the wrong set of draw buffers. Noticed while looking
into a DRI2 glean ReadPixels issue.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c
dcfe0d66bfff9a55741aee298b7ffb051a48f0d3 20-Jun-2009 Eric Anholt <eric@anholt.net> intel: Move intel_pixel_read.c to shared for use with i965.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_read.c