Commit Graph

23210 Commits

Author SHA1 Message Date
Ian Romanick c428f467b6 Fix compiling indirect.c when GLX_DIRECT_RENDERING is not defined
DO NOT HAND-EDIT GLX PROTOCOL FILES.  Seriously.  How can you miss the giant
comment at the top of the file?
2009-06-03 17:53:40 +01:00
Ian Romanick 7f8000db8b Fast path when rebinding the same texture in single context environment
If there is no shared context, there is no purpose in rebinding the same
texture.  In some artificial tests this improves performance 10% - 30%.
2009-06-03 17:50:37 +01:00
Brian Paul 54576130a8 st/mesa: minor clean-ups, reformatting, etc 2009-06-02 21:46:17 -06:00
Brian Paul 5cd47e0361 docs: remove version info carried over from 7.5 2009-06-02 21:41:03 -06:00
Brian Paul 8086352fef docs: clarify GL_ARB_copy_buffer driver support 2009-06-02 21:35:11 -06:00
Brian Paul dd174ea215 st/mesa: implement/enable GL_ARB_copy_buffer extension 2009-06-02 21:35:11 -06:00
Brian Paul 2813c08b35 mesa: fix error test mistake in _mesa_CopyBufferSubData() 2009-06-02 21:35:11 -06:00
Brian Paul 2e708fa909 docs: added GL_ARB_copy_buffer extension 2009-06-02 21:35:11 -06:00
Brian Paul 3a7399e2c4 mesa: enable GL_ARB_copy_buffer for software drivers 2009-06-02 21:35:11 -06:00
Brian Paul 08e43ebfb2 mesa: plug in new _mesa_CopyBufferSubData() functions 2009-06-02 21:35:11 -06:00
Brian Paul dc0b71f00d mesa: _mesa_CopyBufferSubData() function, and driver fall-back 2009-06-02 21:35:11 -06:00
Brian Paul 96a30b06db mesa: new state for GL_ARB_copy_buffer 2009-06-02 21:35:10 -06:00
Brian Paul 76b438878e mesa: new CopyBufferSubData() driver hook 2009-06-02 21:35:10 -06:00
Brian Paul 751977075f glapi: regenerated files for GL_ARB_copy_buffer 2009-06-02 21:35:10 -06:00
Brian Paul 68892872ef glapi: include ARB_copy_buffer.xml 2009-06-02 21:35:09 -06:00
Brian Paul 4a1e4f9881 glapi: GL_ARB_copy_buffer xml info 2009-06-02 21:35:09 -06:00
Joakim Sindholt 45b77830eb r300-gallium: strip swtcl to the bare minimum
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-02 22:23:17 +02:00
Ian Romanick 129f311673 intel: Clip to window after calling Driver.TexImage2D
This prevents the width / height from being clipped to the window size before
the texture is allocated.  This matches intelCopyTexImage1D.

This should fix bug #21227

Signed-off-by: Ian Romanick <ian.romanick@intel.com>
2009-06-02 16:50:11 +01:00
Eric Anholt a945e203d4 i915: Don't put VBOs in graphics memory unless required for an operation.
This saves doing swtnl from uncached memory, which is painful.  Improves
clutter test-text performance by 10% since it started using VBOs.
2009-06-02 06:55:10 -07:00
Eric Anholt 0ab8e2622e i965: Support OPCODE_TRUNC in the brw_wm_fp.c code.
This gets two more glean glsl1 tests using the non-GLSL path.
2009-06-02 06:21:54 -07:00
Brian Paul 9f6ec50f8c Merge branch 'mesa_7_5_branch' 2009-06-01 15:01:33 -06:00
Brian Paul 0e8a5a8474 st/mesa: fix incorrect sprite origin when drawing to FBO/texture
Need to take the draw buffer's up/down orientation into consideration
when setting the sprite_coord_mode field.

Fixes inverted sprites when drawing into an FBO.
2009-06-01 14:59:11 -06:00
Brian Paul 427554211b draw: reset extra_vp_outputs.slot to zero in widepoint_flush()
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-01 14:28:57 -06:00
Corbin Simpson 1fa023ae48 r300-gallium: Slightly hacky fix for glxgears-style TCL. 2009-06-01 12:04:29 -07:00
Brian Paul a5d033e89b demos: add missing dependencies for util files 2009-06-01 11:23:39 -06:00
Dan Nicholson bc302b2a33 Use separate $(MINSTALL) for installing libraries
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-01 06:32:52 -07:00
Jakob Bornecrantz 85e0572756 progs/rbug: Add small remote debugging cli applications 2009-06-01 11:39:25 +01:00
Jakob Bornecrantz 01fa34cb98 trace/rbug: Add rbug integration for remote debugging 2009-06-01 11:19:56 +01:00
Jakob Bornecrantz dfa4ebcbcc rbug: Add Gallium Remote Debugger Protocol code
This is the (de)marshalling and connection managment code
2009-06-01 11:19:39 +01:00
Jakob Bornecrantz aee1a6f704 util: Add simple network functions 2009-06-01 02:18:15 -07:00
José Fonseca ea3ee4791e wgl: Cleanup framebuffer destruction logic. 2009-05-31 17:16:26 -07:00
José Fonseca 0ea519f931 wgl: Ensure we only create framebuffers for HDC associated with a window. 2009-05-31 11:10:22 -07:00
José Fonseca fe69b6bdc7 wgl: Use the right pixel format.
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-30 20:29:03 -07:00
José Fonseca be7c56be06 wgl: Fix debugging output. 2009-05-30 20:29:03 -07:00
José Fonseca 76f2bacb07 wgl: Rename function. 2009-05-30 20:29:03 -07:00
José Fonseca 1124f786c1 wgl: Remove unused field. 2009-05-30 20:29:03 -07:00
José Fonseca 5bb2074798 mesa: Output warnings to debugger on Windows.
Stderr of Windows applications without console is not usually
visible.
2009-05-30 20:29:02 -07:00
José Fonseca 8aef306c34 mesa: Check/propagate return value on st_make_current.
Prevents segmentation fault when trying to set the viewport/scissor
after a context/drawable visual mismatch.
2009-05-30 20:29:02 -07:00
José Fonseca 29c6c8eb18 mesa: Add success/failures return value to _mesa_make_current. 2009-05-30 20:29:02 -07:00
Brian Paul bedf7fa49f Merge branch 'mesa_7_5_branch' 2009-05-30 20:10:04 -06:00
Brian Paul 6c3cefdda6 Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"
This reverts commit 5d75124db4.

This fixed unclipped polygons, but broke clipped polygons.
A better fix from the mesa 7.5 branch will be merged next...
2009-05-30 20:09:19 -06:00
Brian Paul a59575d8fb softpipe: fix incorrect provoking vertex color for PIPE_PRIM_POLYGON
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-30 20:07:18 -06:00
Brian Paul fa0ca31586 softpipe: update comments for max texture size 2009-05-29 08:22:21 -06:00
Brian Paul 425c39058b softpipe: increase max 2D/cube texture size to 4K x 4K 2009-05-29 00:55:54 -06:00
Corbin Simpson b70fcd620d r300-gallium, radeon-gallium: Make add_buffer indicate when a flush is needed.
On a side note, why is RADEON_MAX_BOS 24? Should ask airlied about that.
2009-05-28 07:46:34 -07:00
Ben Skeggs 534f1e8f02 nv50: some mipmapping fixes 2009-05-28 16:06:25 +10:00
Christoph Bumiller c11c107f7d nv50: negate sources directly where supported 2009-05-28 16:06:25 +10:00
Christoph Bumiller 87eea6e2b2 nv50: introduce emit_cvt and use it
This makes some code cleaner, and we can now easily
do CEIL and TRUNC.
2009-05-28 16:06:24 +10:00
Christoph Bumiller 3accd7ebe9 nv50: fix TXP
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-28 16:06:24 +10:00
Christoph Bumiller 94ba165dff nv50: use multiple constant buffers
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-28 16:06:24 +10:00