summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel
AgeCommit message (Collapse)AuthorFilesLines
2009-11-23i915: Initialize Length and Offset fields when mapping a buffer objectIan Romanick1-0/+2
This fixes an assertion failure in _mesa_MapBufferARB. Fixes bugzilla #25253.
2009-11-04Fix YTILE spantmp functionsAlan Hourihane1-2/+2
2009-10-28intel: Fix memory leak in case of renderbuffer bad formatVinson Lee1-0/+1
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-28intel: Fix memory leak in event of mip tree allocation failureVinson Lee1-1/+3
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-27intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).Eric Anholt1-1/+1
Bug #24435 (cherry picked from commit d56125a298106d81e10674f1c4b3b43b51a5139d)
2009-10-27intel: added region draw_x/y offsets in x/y_tile_swizzle() funcsBrian Paul1-0/+6
This fixes the second part of bug 23552.
2009-10-27intel: fix src offset bug in do_copy_texsubimage()Brian Paul1-1/+1
Use src->draw_offset intead of zero. Zero usually worked, except when the src renderbuffer is actually a texture mipmap level higher than zero. Fixes progs/test/blitfb.c test.
2009-10-26intel: fix GL state bugs in intel_texture_bitmap()Brian Paul1-4/+3
Need to push texture state and polygon state too. Fixes rendering glitches seen in progs/demos/engine when changing the rendering mode (wireframe, texture modes). This makes bitmap rendering a little slower, unfortunately.
2009-10-23intel: Keep track of x,y offsets in miptrees and use them for blitting.Eric Anholt7-137/+114
By just using offsets, we confused the hardware's tiling calculations, resulting in failures in miptree validation and blit clears. Fixes piglit fbo-clearmipmap. Bug #23552. (automatic mipmap generation)
2009-10-22intel: flush old context before binding new contextBrian Paul1-2/+15
Per the GLX spec, when changing rendering contexts, the old context should first be flushed.
2009-10-22intel: define INTEL_FALLBACK_DRIVER for driversBrian Paul1-0/+1
2009-10-22intel: Fallback field is a bitmask, use GLbitfieldBrian Paul2-3/+8
2009-10-05intel: use driReadDrawable in do_copy_texsubimage()Brian Paul1-1/+1
2009-10-05intel: use driReadDrawable, not driDrawable in do_blit_readpixels()Brian Paul1-2/+2
2009-10-05intel: remove a buffer equality test in _mesa_make_current()Brian Paul1-33/+27
Before, if we called glXMakeCurrent() to change a context's window binding while an FBO was bound, we weren't updating the intel->driDrawable and intel->driReadDrawable fields. This could cause us to dereference a null pointer elsewhere.
2009-09-30i965: Fix massive memory allocation for streaming texture usage.Eric Anholt1-0/+16
Once we've freed a miptree, we won't see any more state cache requests that would hit the things that pointed at it until we've let the miptree get released back into the BO cache to be reused. By leaving those surface state and binding table pointers that pointed at it around, we would end up with up to (500 * texture size) in memory uselessly consumed by the state cache. Bug #20057 Bug #23530
2009-09-28Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul1-1/+4
2009-09-25intel: Handle GL_RGB8 for glCopyTex(Sub)Image.Michel Dänzer1-0/+1
Avoids an unnecessary fallback.
2009-09-24i915: Fix GetBufferSubData in the case of a system-memory BO.mesa_7_5_2_rc1Eric Anholt1-1/+4
Bug #23760 (crashes in wine)
2009-09-24intel: Flush the batch when we're about to subdata into a VBO.mesa_7_6_rc1Eric Anholt2-2/+5
This fixes the clears in openarena with the new metaops clear code, and the new piglit vbo-subdata-sync test. Bug #23857.
2009-09-24intel: use default array/element buffers in intel_generate_mipmap()Brian Paul1-0/+21
If there happened to be a bound VBO when intel_generate_mipmap() was called we blew up because of a bad vertex array pointer. Fixes regnumonline, bug 23859.
2009-09-21intel: Mark the FBO as incomplete if there's no intel_renderbuffer for it.Eric Anholt1-0/+5
This happens to rendering with textures with a border, which had resulted in a segfault on dereferencing the irb. (cherry-picked from commit 8bba183b9eeb162661a287bf2e118c6dd419dd24)
2009-09-21Merge branch 'mesa_7_5_branch' into mesa_7_6_branchMichel Dänzer1-1/+2
2009-09-21intel: Fix crash in intel_flush().Michel Dänzer1-1/+2
Since commit 2921a2555d0a76fa649b23c31e3264bbc78b2ff5 ('intel: Deassociated drawables from private context struct in intelUnbindContext'), intel->driDrawable may be NULL in intel_flush().
2009-09-18[i965] add a missing header fileZou Nan hai1-0/+1
2009-09-18 [i965] use intel_batchbuffer_flush to flush the clearZou Nan hai1-1/+2
2009-09-16Merge branch 'mesa_7_5_branch' into mesa_7_6_branchIan Romanick1-0/+8
Conflicts: src/mesa/main/dlist.c
2009-09-16intel: Deassociated drawables from private context struct in intelUnbindContextIan Romanick1-0/+8
The generic DRI infrastructure makes sure that __DRIcontextRec::driDrawablePriv and __DRIcontextRec::driReadablePriv are set to NULL after unbinding a context. However, the intel_context structure keeps cached copies of these pointers. If these cached pointers are not NULLed and the drawable is actually destroyed after unbinding the context (typically by way of glXDestroyWindow), freed memory will be dereferenced in intelDestroyContext. This should fix bug #23418.
2009-09-16i965: do a flush in clear, fix openarena render issue,Zou Nan hai1-0/+1
fd.o bug# 23857
2009-09-10intel: disable intel_stencil_drawpixels() for nowBrian Paul1-0/+16
It doesn't work reliably even when all the prerequisite checks are made.
2009-09-10Fix merge failIan Romanick1-13/+0
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
2009-09-10Merge branch 'mesa_7_5_branch' into mesa_7_6_branchIan Romanick2-1/+6
Conflicts: src/mesa/drivers/dri/intel/intel_context.c
2009-09-10intel: add B43 chipset supportZhenyu Wang2-1/+6
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Hopefully this will be one of the last cherry-picks. (cherry picked from commit ca246dd186f9590f6d67038832faceb522138c20)
2009-09-09Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul2-0/+20
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
2009-09-04i965: Fix warnings in intel_pixel_read.c.Eric Anholt1-0/+4
(cherry picked from commit c80ce5ac90b1e0ac7a72cd41c314aa2000bfecf5)
2009-09-04intel: Also get the DRI2 front buffer when doing front buffer reading.Eric Anholt3-1/+28
(cherry picked from commit df70d3049a396af3601d2a1747770635a74120bb)
2009-09-04intel: Update Mesa state before span setup in glReadPixels.Eric Anholt2-3/+12
We could have mapped the wrong set of draw buffers. Noticed while looking into a DRI2 glean ReadPixels issue. (cherry picked from commit afc981ee46791838f3cb83e11eb33938aa3efc83)
2009-09-04intel: Move intel_pixel_read.c to shared for use with i965.Eric Anholt1-0/+306
(cherry picked from commit dcfe0d66bfff9a55741aee298b7ffb051a48f0d3)
2009-09-04intel: Align untiled region height to 2 according to 965 docs.Eric Anholt1-0/+7
This may or may not be required pre-965, but it doesn't seem unlikely, and I'd rather be safe. (cherry picked from commit b053474378633249be0e9f24010650ffb816229a)
2009-09-03mesa: rename gl_sync_object::Status to StatusFlagBrian Paul1-2/+2
There's a symbol collision with X11/Xlib.h #define Status int in the Mesa xlib code. This seems the simpliest way to work around this.
2009-09-03intel: Add support for ARB_sync.Eric Anholt4-0/+143
We currently weasel out of supporting the timeout parameter, but otherwise this extension looks ready, and should make the common case happy.
2009-09-03intel: helper to debug bufmgr (disabled)Brian Paul1-0/+4
2009-09-03mesa: change ctx->Driver.BufferData() to return GLboolean for success/failureBrian Paul1-3/+8
Return GL_FALSE if we failed to allocate the buffer. Then raise GL_OUT_OF_MEMORY in core Mesa.
2009-09-02intel: Add support for FlushMappedBufferRange for ARB_map_buffer_range.Eric Anholt2-15/+59
This should help for the usage by the VBO module, where we would upload the whole remaining chunk of the buffer for a series of range maps that should cover just a segment of it.
2009-09-02intel: Sync a synchronized READ_BIT map buffer range with GL drawing to it.Eric Anholt1-1/+1
It's probably uncommon, but would obviously have gone wrong.
2009-09-02intel: Move MapBufferRange mesa state setting up to cover the 915 case.Eric Anholt1-7/+7
2009-09-01intel: use _mesa_expand_bitmap() to skip an intermediate bufferBrian Paul1-21/+6
2009-09-01intel: use BUFFER_BITS_COLORBrian Paul1-1/+1
2009-09-01intel: fix incorrect parameter type for intel_bufferobj_map_range()Brian Paul1-1/+1
2009-09-01intel: set Length/Offset fields in intel_bufferobj_map()Brian Paul1-0/+3