summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* i915tex: Make sure renderbuffers don't get deleted when flipping them.Michel Dänzer2007-03-262-6/+21
| | | | | | | Since the recent renderbuffer refcounting fixes it's no longer sufficient to just remove the old renderbuffer from the framebuffer and then add the new one because the former may decrease the reference count to 0 and delete the old renderbuffer.
* nouveau: match drm version bumppre-merge-glsl-compiler-1Ben Skeggs2007-03-261-1/+1
|
* Fix some renderbuffer reference counting issues. Also fixes a mem leak.Brian2007-03-256-92/+55
|
* destroy window on exitBrian2007-03-251-1/+3
|
* i965: The given urb layout(maximal size of urb entries and theXiang, Haihao2007-03-251-1/+1
| | | | values for nr of entries) should meet the requirement.
* Color3iv: set the alpha value to 1.0Xiang, Haihao2007-03-251-1/+1
|
* r300: Whitespace cleanup in r300_texmem.cNicolai Haehnle2007-03-251-183/+178
|
* r300: Whitespace cleanup in r300_texstate.cNicolai Haehnle2007-03-251-88/+82
|
* r300: Fix regression: unnecessary node indirectionNicolai Haehnle2007-03-251-2/+7
| | | | | The texture_rectangle fix introduced a bug where every texture instruction caused a new indirection.
* nouveau: implement nv20Clear and nv20ScissorDave Airlie2007-03-251-4/+17
| | | | Still crashes out on scissor regs
* r300: Fix texture coordinate calculation for rectangle texturesNicolai Haehnle2007-03-245-174/+116
| | | | | | | | | | | R300 hardware takes texcoords in the range 0..1 even for rectangle textures. Previously, the necessary texcoord conversion was applied to the texture coordinate during vertex processing in a render stage. This is obviously wrong when fragment programs are used, which can calculate arbitrary coordinates for TEX instructions. Therefore, we now inject an appropriate MUL instruction before a TEX that reference a rectangle texture.
* r300: No assertion when accessing incomplete texture images.Nicolai Haehnle2007-03-243-16/+17
| | | | | | | There used to be an assertion when a fragment program accesses an incomplete texture image. Work around this assertion. Note: I am unsure whether this workaround produces the desired result (0,0,0,1) on all hardware.
* r300: Fix: KIL instruction don't require texturesNicolai Haehnle2007-03-241-4/+8
| | | | | When no textures were enabled, a KIL instruction triggered an assertion in r300_setup_rs_unit.
* swrast: Fix crash when sampling from a non-existing texture objectNicolai Haehnle2007-03-241-3/+1
|
* nouveau: some swtcl fixesBen Skeggs2007-03-241-0/+9
|
* Implement alpha buffer copy for SwapBuffers().Brian2007-03-234-5/+43
| | | | | | | | | | | | | Nicolai writes: When the pixmap pixel format has no alpha channel, the x11 driver (software rendering) adds a wrapped alpha channel on request. During SwapBuffers, this alpha channel is not copied from back to front, which means that the front buffer doesn't really contain the contents that the back buffer previously contained. A subsequent glReadPixels from the front buffer will return an incorrect result. The following patch attempts to fix this.
* r300: Whitespace cleanup (remove trailing spaces)Nicolai Haehnle2007-03-231-108/+108
|
* use _mesa_alloc_instructions()Brian2007-03-221-3/+2
|
* use _mesa_copy_instructions()Brian2007-03-221-4/+3
|
* Ensure we have a valid ReadBuffer for CopyTexSubImage, andAlan Hourihane2007-03-221-6/+6
| | | | | | if not bail accordingly. Previously we'd only do this test on compressed textures.
* fix for bug#10339Xiang, Haihao2007-03-222-3/+3
| | | | StateFlags has been updated in _mesa_add_state_reference
* document 1D convolution fixBrian2007-03-211-0/+1
|
* 1D convolution (and post-conv scale/bias) were inadvertantly applied to 2D ↵Brian2007-03-213-1/+15
| | | | image transfers.
* fix copy and paste bug from last commit in fog generation code for GL_LINEAR fogRoland Scheidegger2007-03-211-2/+2
|
* nouveau: update for drm interface changes (0.0.5)Ben Skeggs2007-03-214-9/+13
|
* nouveau: SwapBuffers() needs to perform a glFlush()Ben Skeggs2007-03-211-0/+1
|
* mesa: revert f9f79c8d770e696249bd98c68b563f887562c974Xiang, Haihao2007-03-213-16/+6
| | | | | | | to fix #10232 Table6.1(in gl2.1) has been applied for glGetTexImage before calling into _mesa_pack_rgba_span_float.
* r300: Remove the program-global const_sin indexNicolai Haehnle2007-03-212-31/+23
| | | | | | | The index is no longer necessary to share constants between multiple SIN/COS/SCS instructions inside a single fragment program, and storing a tiny implementation detail like this in the fragment_program structure itself was just nasty.
* r300: Whitespace cleanup (remove trailing spaces)Nicolai Haehnle2007-03-201-26/+26
|
* fix for bug#10347Xiang, Haihao2007-03-201-9/+3
| | | | | | not sure which brw surface for DXT3 & DXT5, so restore the previous choice.(changed in commit 84081774e62a8af18e6bf894ea69f63b97dcfe96)
* use passed target parameterAlan Hourihane2007-03-201-1/+1
|
* nouveau: fix typoBen Skeggs2007-03-201-1/+1
|
* nouveau: fail translate if we use too many params somehowBen Skeggs2007-03-203-5/+31
|
* nouveau: NVSDBG macroBen Skeggs2007-03-205-0/+24
|
* r300: Cleanup fragment program constant allocation, share constantsNicolai Haehnle2007-03-192-73/+61
| | | | | | | | | The constant/parameter allocation was significantly simplified, removing one unnecessary copy operation of parameters. The dirty state tracking is unchanged and far from optimal, since all state is always re-fetched. Constants and parameters are now emitted only once, which significantly reduces the resource pressure on larger programs.
* r300: Fix special case (tmp.x <= 0) in fragment program LIT instructionNicolai Haehnle2007-03-191-2/+2
| | | | Also, fix a typo in a related comment.
* r300: Clear fragment program instruction slots on first useNicolai Haehnle2007-03-191-0/+2
| | | | | | | | Make sure that instruction slots are fully initialized with NOPs during find_and_prepare_slot(). This fixes a bug when a fragment program was translated more than once (e.g. due to a second call to glProgramStringARB). This partially fixes glean/fragProg1.
* r300: Dump fragment program after translation if RADEON_DEBUG=pixel is setNicolai Haehnle2007-03-191-1/+1
|
* r300: Whitespace cleanup (remove trailing spaces)Nicolai Haehnle2007-03-191-109/+109
|
* r300: Fix WRITEMASK handling when writing to result.depthNicolai Haehnle2007-03-191-3/+8
| | | | | | | | | This is a necessary change to emit the right instructions when writing to result.depth. However, even with this test, Z-write doesn't work properly, and I don't fully understand why. In addition to this, we'll at least have to disable early-Z, but even that doesn't seem to be enough.
* r300: Streamlined fragment program LIT implementationNicolai Haehnle2007-03-191-62/+101
| | | | | | | | Fix a bug in the LIT implementation (clamp exponent to 128, not 0.5) and change the implementation around. In theory, the new implementation needs as little as 5 instruction slots. Unfortunately, the dependency analysis in find_and_replace_slot is not strong enough to look at individual components of a register yet.
* r300: Fix fragment program reorderingNicolai Haehnle2007-03-192-5/+37
| | | | | Do not move an instruction that writes to a temp forward past an instruction that reads the same temporary.
* r300: Fragment program dumps format tex instructionsNicolai Haehnle2007-03-191-2/+28
|
* r300: Fix hw fragment program dumpNicolai Haehnle2007-03-191-17/+34
| | | | | | | Dumps of fragment programs were incorrect when the program consisted of multiple nodes. Also, improved the formatting a bit.
* r300: Fix fragment program instruction pairing and register allocationNicolai Haehnle2007-03-193-290/+582
| | | | | | | | | | | | | There were a number of bugs related to the pairing of vector and scalar operations where swizzles ended up using the wrong source register, or an instruction was moved forward and ended up overwriting an aliased register. The new algorithm for register allocation is quite conservative and may run out of registers before necessary. On the plus side, It Just Works. Pairing is done whenever possible, and in more cases than before, so in practice this change should be a net win.
* i915tex: The intended triple buffering fix.Michel Dänzer2007-03-192-27/+1
| | | | | Making modifications while the editor spawned by git-commit was suspended didn't have the intended effect.
* i915tex: Fix triple buffering after recent Mesa core changes.Michel Dänzer2007-03-191-0/+22
| | | | | | | | | | Remove superfluous _mesa_resize_framebuffer call which is now harmful because it causes the third renderbuffer to have width/height 0, so Mesa refuses to render to it. In the long term, it would be nice to remove the hack in intel_alloc_window_storage in favour of a proper Mesa interface for flipping between more than two colour buffers.
* fix off-by-one in load_state_immediateKeith Whitwell2007-03-182-2/+2
|
* fix typo in subrect_disable packetKeith Whitwell2007-03-181-1/+1
|
* fix typo in subrect_disable packetKeith Whitwell2007-03-181-1/+1
|