summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel
AgeCommit message (Collapse)Author
2009-02-21intel: Fix intelSetTexBuffer miptree leak.Kristian Høgsberg
The intelImage also holds a reference to the miptree, so unref that as well.
2009-02-21intel: tell libdrm whether we want a cpu-ready or gpu-ready BO for regions.Eric Anholt
This lets us avoid allocing new buffers for renderbuffers, finalized miptrees, and PBO-uploaded textures when there's an unreferenced but still active one cached, while also avoiding CPU waits for batchbuffers and CPU-uploaded textures. The size of BOs allocated for a desktop running current GL cairogears on i915 is cut in half with this. Note that this means we require libdrm 2.4.5.
2009-02-20intel: fix datatype typo, s/GLboolean/GLuint/Brian Paul
Fixes mysterious failures in glean glsl1 test.
2009-02-17intel: Fix tri clear to do FBO color attachments as well.Eric Anholt
This is a 2% win in fbo_firecube, and would avoid a sw fallback for masked clears.
2009-02-17intel: Clean up several 965 memory leaks on context destroy.Eric Anholt
2009-02-13intel: turn on GL_ARB_shading_language_120Brian Paul
It's done in the Mesa GLSL compiler. The only part of it that might matter in drivers is the centroid sampling option for MSAA.
2009-02-11Fix an i965 assertion failure on glClear()Robert Ellison
While running conform with render-to-texture: conform -d 33 -v 2 -t -direct the i965 driver failed this assertion: intel_clear.c:77: intel_clear_tris: Assertion `(mask & ~((1 << BUFFER_BACK_LEFT) | (1 << BUFFER_FRONT_LEFT) | (1 << BUFFER_DEPTH) | (1 << BUFFER_STENCIL))) == 0' failed. The problem is that intel_clear_tris() is called by intelClear() to clear any and all of the available color buffers, but intel_clear_tris() actually only handles the back left and front left color buffers; so the assertion fails as soon as you try to clear a non-standard color buffer. The fix is to have intelClear() only call intel_clear_tris() with buffers that intel_clear_tris() can support. intelClear() already backs down to _swrast_Clear() for all buffers that aren't handled explicitly.
2009-02-10intel: Add x8r8g8b8 visuals to DRI1 fbconfigs alongside a8r8gb8.Eric Anholt
This involved fixing driConcatConfigs to not return const (which had made a mess of a previous patch too).
2009-02-10intel: Don't do the extra MI_FLUSH in flushing except when doing glFlush().Eric Anholt
Everything other than "make sure the last rendering ends up visible on the screen" doesn't need that behavior.
2009-02-10intel: Speed up glDrawPixels(GL_ALPHA) by using an alpha texture format.Eric Anholt
2009-02-10intel: Fix some state leakage of {Client,}ActiveTexture in metaops.Eric Anholt
Found while debugging cairo-gl.
2009-02-10intel: don't crash when dri2 tells us about buffers we don't care about.Eric Anholt
2009-02-10Merge commit 'origin/gallium-master-merge'Brian Paul
This is the big merge of the gallium-0.2 branch into master. gallium-master-merge was just the staging area for it. Both gallium-0.2 and gallium-master-merge are considered closed now. Conflicts: progs/demos/Makefile src/mesa/main/state.c src/mesa/main/texenvprogram.c
2009-02-10intel: minor reformatting, commentsBrian Paul
2009-02-10gallium: Fixups for driCreateConfigs MSAA support.Michel Dänzer
Add the MSAA samples array or make sure its contents are initialized.
2009-02-09i965: need to disable current shader, if any, in intel_clear_tris()Brian Paul
Fixes bad background in all the progs/glsl/ tests.
2009-02-09re-add MSAA supportBrian Paul
(cherry picked from commit f7d80aa00611917bc8ce637136d982b151b8f44f) This also involved adding the new MSAA fields to driCreateConfigs(). Also, re-add prog_instructions->Sampler field for i965 driver. Will have to revisit that.
2009-02-04intel: Decode MI operands using specific length masksChris Wilson
The MI opcodes have different variable length masks, so use an operand specific mask to decode the length.
2009-02-04intel: Correct decoding of 3DSTATE_PIXEL_SHADER_CONSTANTSChris Wilson
A couple of minor typos that proclaimed an error in the wrong command, and failed to offset the mask.
2009-02-04intel: Fix fbo_firecube regression with FBconfigs change.Eric Anholt
By selecting a 4444 texture format due to a bad test, we hit the intel_update_wrapper error path, and despite the appearance of error handling in it and its callers, the desired behavior (software fallback) doesn't occur.
2009-02-03intel: Fix commented-out glViewport in intel_meta_set_passthrough_transform.Eric Anholt
Too much commit -a while debugging.
2009-02-02i965: Delete old metaops code now that there are no remaining consumers.Eric Anholt
2009-02-02intel: replace custom metaops clear with generic.Eric Anholt
No real-world impact on performance seen. Even glxgears seems to be, if anything, happier.
2009-01-31intel: Correct FBconfig color masks with DRI2. Fail at copy and paste.Eric Anholt
This still leaves us with a broken depth 32 visual, but now it's the server's visual setup that's at fault.
2009-01-30intel: more debug infoBrian Paul
2009-01-30intel: remove unused RenderToTexture fieldBrian Paul
2009-01-30intel: If we're doing a depth clear with tris, do color with it.Eric Anholt
This is a 10% win on the ever-important glxgears not-a-benchmark.
2009-01-30i915: Only call CalcViewport from DrawBuffers instead of Viewport.Eric Anholt
This saves an inadvertent round-trip to the X Server on DrawBuffers, which was hurting some metaops.
2009-01-30intel: Expose more FBconfigs in the 3D driver.Eric Anholt
We can support any combination of (a8r8g8b8, x8r8g8b8, r5g6b5) x (z0,z24,z24s8) on either class of chipsets. The only restriction is no mixing bpp when also mixing tiling. This shouldn't be occurring currently.
2009-01-29intel: remove unused intel_depthstencil.[ch]Brian Paul
2009-01-29intel: remove unused #includesBrian Paul
2009-01-29intel: formatting clean-upsBrian Paul
2009-01-29intel: fix check for Y orientation in span functions.Brian Paul
2009-01-29intel: remove unused intel_rendering_to_texture()Brian Paul
2009-01-28intel: Fix up some extension string issuesIan Romanick
Move the remaining extension string enables to intel_extensions.c. Make sure that GL_NV_texture_env_combine4 is not enabled on i830.
2009-01-28Make GL_ARB_draw_buffers mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_{EXT,SUN}_multi_draw_arrays and GL_IBM_multimode_draw_arrays mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_ARB_vertex_buffer_object mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_ARB_multisample mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_ARB_texture_compression mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28i965: implement GL_EXT_texture_swizzleBrian Paul
If the texture swizzle is not XYZW (no-op) add an extra MOV instruction after the TEX instruction to rearrange the components.
2009-01-27intel: clean up more pf mess.Eric Anholt
2009-01-26intel: replace i915/intel_state.c and i965/intel_state.c with shared fileBrian Paul
2009-01-26intel: move some driver functions aroundBrian Paul
A step toward consolidating i915/intel_state.c and i965/intel_state.c
2009-01-26intel: check if stencil test is enabled in intel_stencil_drawpixels()Brian Paul
2009-01-26intel: save/restore GL matrix mode in ↵Brian Paul
intel_meta_set_passthrough_transform(), intel_meta_restore_transform()
2009-01-26intel: asst. casts to silence warningsBrian Paul
2009-01-26intel: #include clean-upsBrian Paul
2009-01-26intel: remove old #includesBrian Paul
2009-01-26intel: make intelUpdateScreenFromSAREA() staticBrian Paul