summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2009-06-04trace/rbug: Add new contexts functions to trace rbugJakob Bornecrantz
2009-06-04rbug: Update rbug protocol with new context callsJakob Bornecrantz
2009-06-04Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: src/mesa/main/context.c
2009-06-04softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()Brian Paul
Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN. This is a follow-on to commit a59575d8fbe8b0ca053cc8366ce7a42bc660158a. (cherry picked from commit 086ecea179ed572c89aa77c5f465671a5cef87a7)
2009-06-04softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON renderingBrian Paul
This fixes incorrect front/back-face orientation. (cherry picked from commit a64bbdaa3e0b036a880d6db65ceb4a66205062f1)
2009-06-04tgsi: increase MAX_LABELS to 4096Brian Paul
2009-06-03softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()Brian Paul
Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN. This is a follow-on to commit a59575d8fbe8b0ca053cc8366ce7a42bc660158a.
2009-06-03softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON renderingBrian Paul
This fixes incorrect front/back-face orientation.
2009-06-02util: Unsaved change missing from last commit.José Fonseca
2009-06-02r300-gallium: strip swtcl to the bare minimumJoakim Sindholt
This was originally taken from i915 and it shows. Basically most the stuff in r300_render.c was never needed and shouldn't have worked in the first place
2009-06-02util: Support Z24S8/Z24X8 -> unsigned conversion.José Fonseca
2009-06-02util: Fix 24 to 32 bit expansion binary arithmetic expression.José Fonseca
When approaching y = x * 0xffffffff / 0xffffff with bit arithmetic, the 8 least significant bits of y should come from the 8 most significant bits of x.
2009-06-01gallium/draw: Free specialized versions of driver shadersKeith Whitwell
The pstipple, aaline and aapoint code would create specialized versions of shaders and upload them to the driver -- but never free them.
2009-06-01draw: free more token arraysKeith Whitwell
The AA line and point code also needs to free token arrays after building driver shaders.
2009-06-01draw: avoid leaking tokens when building pstipple fragment shaderKeith Whitwell
Add missing FREE() after MALLOC().
2009-06-01wgl: Destroy the framebuffer when the window is destroyed.José Fonseca
2009-06-01Merge branch 'mesa_7_5_branch'Brian Paul
2009-06-01draw: reset extra_vp_outputs.slot to zero in widepoint_flush()Brian Paul
Fixes a crash when clearing the window with a quad after drawing large points. We were asking the draw module how many vertex shader outputs there were and got 3 instead of 2. This led to creating vertices with too many attributes and trying to read invalid memory. We reset extra_vp_outputs.slot to zero in the aaline/aapoint stage's flush functions already. This omission was just an oversight in the wide_point stage.
2009-06-01r300-gallium: Slightly hacky fix for glxgears-style TCL.Corbin Simpson
2009-06-01Use separate $(MINSTALL) for installing librariesDan Nicholson
The special feature of bin/minstall to copy symlinks is only ever needed when installing libraries which may have .so symlinks. All the headers and directories can use a normal install program. These two modes are separated as $(INSTALL) and $(MINSTALL) to allow the user (or autoconf) to override installing normal files as they please. An autoconf check for the install program has been added and will be used in preference to minstall when available. Fixes bug 16053.
2009-06-01trace/rbug: Add rbug integration for remote debuggingJakob Bornecrantz
2009-06-01rbug: Add Gallium Remote Debugger Protocol codeJakob Bornecrantz
This is the (de)marshalling and connection managment code
2009-06-01util: Add simple network functionsJakob Bornecrantz
2009-05-31wgl: Cleanup framebuffer destruction logic.José Fonseca
2009-05-31wgl: Ensure we only create framebuffers for HDC associated with a window.José Fonseca
2009-05-30wgl: Use the right pixel format.José Fonseca
There is no current pixel format. Each HDC has its pixelformat which is kept by gdi and set/get via the SetPixelFormat/GetPixelFormat functions. Now the HDC's pixelformat is kept in the stw_framebuffer, which is created during the SetPixelFormat.
2009-05-30wgl: Fix debugging output.José Fonseca
2009-05-30wgl: Rename function.José Fonseca
2009-05-30wgl: Remove unused field.José Fonseca
2009-05-30Merge branch 'mesa_7_5_branch'Brian Paul
2009-05-30Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"Brian Paul
This reverts commit 5d75124db480b37977c353511b4e228905b7cc95. This fixed unclipped polygons, but broke clipped polygons. A better fix from the mesa 7.5 branch will be merged next...
2009-05-30softpipe: fix incorrect provoking vertex color for PIPE_PRIM_POLYGONBrian Paul
This fixes the incorrect colors seen when rendering flat-shaded polygons. Note that clipped polygons were correct, but unclipped polygons were wrong. See the glean/clipFlat test for regression testing.
2009-05-29softpipe: update comments for max texture sizeBrian Paul
2009-05-29softpipe: increase max 2D/cube texture size to 4K x 4KBrian Paul
2009-05-28r300-gallium, radeon-gallium: Make add_buffer indicate when a flush is needed.Corbin Simpson
On a side note, why is RADEON_MAX_BOS 24? Should ask airlied about that.
2009-05-28nv50: some mipmapping fixesBen Skeggs
2009-05-28nv50: negate sources directly where supportedChristoph Bumiller
2009-05-28nv50: introduce emit_cvt and use itChristoph Bumiller
This makes some code cleaner, and we can now easily do CEIL and TRUNC.
2009-05-28nv50: fix TXPChristoph Bumiller
For TXP we need to divide texture coords by their w component, or use the coords' 1/w in the perspective interpolation instruction. This also tries to support 1D, 3D and CUBE textures, and lets the instruction only load the components that are used.
2009-05-28nv50: use multiple constant buffersChristoph Bumiller
Use different buffers for immds, FP params, and VP params. One has to map constant buffer indices in shader code to buffers defined via CB_DEF. In principle, we could use more buffers so we'd have to change the shader code less frequently.
2009-05-28nv50: don't look for unfreed temps in free_nv50_pcChristoph Bumiller
Since we stopped using alloc_temp to get hw indices for FP attrs there shouldn't be any non-deallocated temps left.
2009-05-28nv50: release hw TEMPs earlyChristoph Bumiller
Since we know when we don't use a TEMP or FP ATTR register anymore, we can release their hw resources early.
2009-05-28nv50: allow immediates for MOV, ADD and MULChristoph Bumiller
Immediates are inlined now where possible, so we need to set pc->allow32 to FALSE in LIT where we have the conditional MOV, since immediates swallow the predicate bits.
2009-05-28nv50: enable half insns for MOV and MULChristoph Bumiller
2009-05-28nv50: make sure half-long insns are pairedChristoph Bumiller
I chose to just convert unpaired 32 bit length instructions after parsing all instructions, although it might be possible to determine beforehand whether there would be any lone ones, and then even do some swapping to bring them together ...
2009-05-28nv50: enable KIL in register 19a8Christoph Bumiller
2009-05-28nv50: don't overwrite sources before they're usedChristoph Bumiller
This would have happened in p.e. ADD TEMP[0], TEMP[0].xyxy, TEMP[1] or RCP/RSQ TEMP[i], TEMP[i].
2009-05-28nv50: put FP outputs where they belongChristoph Bumiller
Depth output in fragment programs should end up in the first register after the color outputs.
2009-05-28nv50: modified FP attribute loadingChristoph Bumiller
VP outputs that should be loadable in the FP are mapped to interpolant indices by HPOS, COL0 etc.; of course HPOS is always written, so the highest byte of 1988 is a bitmask that selects which components of HPOS are used for interpolants, i.e. the FP inputs in COL0 start at index POPCNT(1988[24:28]).
2009-05-28nv50: inspect decl semantic and interpolation modeChristoph Bumiller
Record interpolation mode for attributes while parsing declarations, and also remember the indices of FP color inputs and FP depth output, which has to end up in the highest output register.