History log of /external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c738ea1191cd1b5a0dc60b0e6d05fd918083e961 18-Jul-2012 Paul Berry <stereotype441@gmail.com> intel: Make more consistent use of _mesa_is_{user,winsys}_fbo()

A lot of code was still differentiating between between winsys and
user fbos by testing the fbo's name against zero. This converts
everything in the i915 and 965 drivers over to use _mesa_is_user_fbo()
and _mesa_is_winsys_fbo().

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
924de7dc96f4607cb3d833637b5f69f4b9e2a6d0 16-Jan-2012 Brian Paul <brianp@vmware.com> intel: use intel_rb_format() to get renderbuffer format

This will make future changes cleaner and less invasive.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
da2816a45e6e3a33246a341fee72e6f893f315d9 16-Nov-2011 Chad Versace <chad.versace@linux.intel.com> intel: Replace intel_renderbuffer::region with a miptree [v3]

Essentially, this patch just globally substitutes `irb->region` with
`irb->mt->region` and then does some minor cleanups to avoid segfaults
and other problems.

This is in preparation for
1. Fixing scatter/gather for mipmapped separate stencil textures.
2. Supporting HiZ for mipmapped depth textures.

As a nice benefit, this lays down some preliminary groundwork for easily
texturing from any renderbuffer, even those of the window system.

A future commit will replace intel_mipmap_tree::hiz_region with a miptree.

v2:
- Return early in intel_process_dri2_buffer_*() if region allocation
fails.
- Fix double semicolon.
- Fix miptree reference leaks in the following functions:
intel_process_dri2_buffer_with_separate_stencil()
intel_image_target_renderbuffer_storage()

v3:
- [anholt] Fix check for hiz allocation failure. Replace
``if (!irb->mt)` with ``if(!irb->mt->hiz_region)``.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.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_copy.c
df46eb8ec082e020ae7e45d3f584cb1d3dd55653 08-Jun-2011 Eric Anholt <eric@anholt.net> intel: Fix mipmap and format handling of blit glCopyPixels().

Fixes fbo-mipmap-copypix.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
1df72402d99145425531297eef6772b88ce5225d 20-Apr-2011 Eric Anholt <eric@anholt.net> i965: Add support for NV_conditional_render.

Since we lack hardware support for it, this is a simple matter of
checking _mesa_check_conditional_render at the entrypoints, and
suppressing it for the metaops where it doesn't apply.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.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_copy.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_copy.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_copy.c
6422cf387baef75df9e5dbbed5cea4c0f495fe41 22-Mar-2010 Kristian Høgsberg <krh@bitplanet.net> intel: Call intel_prepare_render() before looking up regions.

Fixes #27213.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
a589da14dee0c2a32e6e529f1a390b01a3ee4001 16-Mar-2010 Eric Anholt <eric@anholt.net> i965: Fix inversion for glCopyPixels to/from FBOs.

fixes piglit fbo-copypix.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.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_copy.c
3f912e0b3a84ef3703b974a6c29dbe3ec8e817b2 27-Jan-2010 Eric Anholt <eric@anholt.net> intel: Remove DRI1 junk from CopyPixels.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
ee49ac8742c52696cba8cc5ca50459f8a13153a1 02-Jan-2010 Kristian Høgsberg <krh@bitplanet.net> intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()

This function was using intel->depth_region, which is the static region
for the DRI1 depth buffer. This code has always been broken with DRI2
but I suspect it doesn't get excersized much.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.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_copy.c
fd5511d27fc44096117c47ab503fb5b47f993061 30-Dec-2009 Brian Paul <brianp@vmware.com> mesa: implement per-buffer color masking

This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0.

The ctx->Color.ColorMask field is now a 2-D array. Until drivers are
modified to support per-buffer color masking, they can just look at
the 0th color mask.

The new _mesa_ColorMaskIndexed() function will be called by
glColorMaskIndexedEXT() or glColorMaski().
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
a7e4a311e971005f7b23572ff3ca93f6d3c17edf 02-Dec-2009 Eric Anholt <eric@anholt.net> intel: Fix more front-buffer rendering after Brian's less flushing patch.

bcbfda71b03303d3f008a6f3cf8cb7d9667bf8d2 left out many blit paths.
This fixes up more of them to get Blender to work again.

Bug #25030.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
4de8e2123ebeb50db252b2bb57fb167058fa4683 20-Sep-2009 Brian Paul <brianp@vmware.com> mesa: rename functions to be more consistant with rest of mesa
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
15e6d08670eeaf843ae3d6e557d595da750a5e99 01-Sep-2009 Brian Paul <brianp@vmware.com> intel: use _mesa_meta_copy_pixels() when do_blit_copypixels() fails

Also, trim down #includes.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
16a1f68c391688a631d1d8d47cd1ac78800bcffc 10-Aug-2009 Brian Paul <brianp@vmware.com> intel: use new _mesa_meta_copy_pixels() function

glCopyPixels() no longer hits a software fallback when zooming, blending, etc.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
bdd7506f10d13018a9c71270eed5d3d295978081 07-Jul-2009 Eric Anholt <eric@anholt.net> intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.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_copy.c
246d59c29e3e5a57dcf2f60ad429eb1606193ef0 22-Jun-2009 Eric Anholt <eric@anholt.net> intel: Fix some potential writes to zero-copy PBOs when used as regions.

I was in the midst of fixing some blitting-with-Y-tiled issues when I
noticed this. Hopefully PBO usage will be a little more robust, as a
result.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
91e61f435a71436c209934a0ece165b540aba3e0 02-Mar-2009 Brian Paul <brianp@vmware.com> mesa: use Stencil._Enabled field instead of Stencil.Enabled
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
66a4f5cf9a74f906f802eeeae56de79fc640a2c9 16-Jan-2009 Xiang, Haihao <haihao.xiang@intel.com> i915: fallback on transfer mode
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
b9752a2bd615d136369af63ed3d45cc10adf21e7 18-Dec-2008 Eric Anholt <eric@anholt.net> intel: Update mesa state in blit operations that want post-scissor draw bounds.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
d091ebd4e41c88fe53db9d52842aaa20d23b995d 18-Dec-2008 Eric Anholt <eric@anholt.net> intel: don't clip to scissor-clipped read framebuffer bounds in copypixels.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
a0625fa28152db08f026dc9856035c0908060154 06-Dec-2008 Eric Anholt <eric@anholt.net> intel: Fix glCopyPixels blit acceleration for FBO destinations.

This was another opportunity to either get clipped to screen size or not get
clipped enough and draw outside of object boundaries.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
15487e46a29377edc7ceceefabe9977f992ae01c 22-Sep-2008 Eric Anholt <eric@anholt.net> i915: Fix overlapping CopyPixels with negative pixel zoom.

Fixes a failure in pixel-pos.c oglconform test.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
ecadb51bbcb972a79f3ed79e65a7986b9396e757 18-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: added "main/" prefix to includes, remove some -I paths from Makefile.template
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
35fd72756a05463568d94862f4fcd234903e1204 08-Sep-2008 Eric Anholt <eric@anholt.net> intel: track move of bo_exec from drivers to bufmgr.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
f75843a517bd188639e6866db2a7b04de3524e16 24-Aug-2008 Dave Airlie <airlied@linux.ie> Revert "Revert "Merge branch 'drm-gem'""

This reverts commit 7c81124d7c4a4d1da9f48cbf7e82ab1a3a970a7a.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
7c81124d7c4a4d1da9f48cbf7e82ab1a3a970a7a 24-Aug-2008 Dave Airlie <airlied@linux.ie> Revert "Merge branch 'drm-gem'"

This reverts commit 53675e5c05c0598b7ea206d5c27dbcae786a2c03.

Conflicts:

src/mesa/drivers/dri/i965/brw_wm_surface_state.c
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
2e841880cfc1006a2818d4a8bfefd21136dc39a9 11-Jul-2008 Eric Anholt <eric@anholt.net> drm-gem: Use new GEM ioctls for tiling state, and support new swizzle modes.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
93f701bc3619864ac6f067d37212e96545a57e16 26-Jun-2008 Eric Anholt <eric@anholt.net> intel: Replace sprinkled intel_batchbuffer_flush with MI_FLUSH or nothing.

Most of these were to ensure that caches got synchronized between 2d (or meta)
rendering and later use of the target as a source, such as for texture
miptree setup. Those are replaced with intel_batchbuffer_emit_mi_flush(),
which just drops an MI_FLUSH. Most of the remainder were to ensure that
REFERENCES_CLIPRECTS batchbuffers got flushed before the lock was dropped.
Those are now replaced by automatically flushing those when dropping the lock.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
5174b85a0cb13b06779ea6fc0a8362c9fe57e2ea 24-Jun-2008 Eric Anholt <eric@anholt.net> intel: Fix glCopyPixels when x or y are < 0 in hw coordinates.

Nothing would get drawn as the negative coordinates broke the rectangle
intersection code that used unsigned ints. Tested with copypix demo and
sliding the copy to the upper left.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
9a0d773116c6e9d7a63a63644a12170b7486a86e 24-Jun-2008 Eric Anholt <eric@anholt.net> i965: Use the shared intel_pixel_copy.c.

This disables the textured copy implementation on 965, which didn't appear
to work (mesa copypix demo, disable the blit path, move so that regions don't
overlap and textured is used, and you get garbage). If we resurrect this for
i965, I'd rather it used the 915-style metaops instead. Current metaops code
left in place so that whoever picks it up has a reference.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
59890987799624e07083300d291f2457baff0192 24-Jun-2008 Eric Anholt <eric@anholt.net> i915: Fix read != draw drawable for glCopyPixels.

Taken from commit bad6e175cf59cce630c37d73f6e71f3a4de50ae6.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c
9e68e191ac9d32f2f93e840a66127e724b442756 20-Dec-2007 Eric Anholt <eric@anholt.net> [intel] Move some pixel path support from drivers to shared.
/external/mesa3d/src/mesa/drivers/dri/intel/intel_pixel_copy.c