José Fonseca
5d0cf9ebb4
softpipe: Fix softpipe_is_texture_referenced.
...
Render results are only visible when the render cache is flushed.
softpipe_is_texture_referenced must reflect that or transfers to/from the
textures bound in the framebuffer won't be proceeded of the necessary
flush, causing transfer data to be outdated/clobbered.
This fixes conform drawpix test with softpipe.
2009-06-15 18:42:13 +01:00
Thomas Hellstrom
db22b35d21
dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for depth- and stencil renderbuffers.
...
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-15 11:48:57 +02:00
Thomas Hellstrom
cbe5af766e
gallium: Fix segfault and valgrind error introduced with commit 3f2e006b75
...
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-15 11:22:06 +02:00
José Fonseca
0ddc38309a
python/retrace: Show the contents of the depth/stencil and surfaces before/after transfers.
2009-06-11 20:46:07 +01:00
José Fonseca
e1700009b7
python/retrace: Interpret is_texture_referenced/is_buffer_referenced.
2009-06-11 19:24:48 +01:00
José Fonseca
d5ba39ad08
wgl: Fix prototype.
2009-06-11 19:05:46 +01:00
José Fonseca
3f2e006b75
gallium: New pf_is_depth_and_stencil / pf_is_depth_or_stencil inlines.
2009-06-11 19:02:59 +01:00
José Fonseca
cc09724a50
python/tests: Test sampling from a depth texture.
2009-06-11 16:22:17 +01:00
José Fonseca
4d16eb5e18
util: Single precision constants.
2009-06-10 15:39:47 +01:00
José Fonseca
8bfbb7ec8b
gallium: Shorthand functions for computing stride and sizes for a rect.
2009-06-10 15:31:12 +01:00
Keith Whitwell
9192347443
stw: ignore swapbuffer requests on singlebuffer
...
Return TRUE in this case. Returning FALSE seems to result in
mis-rendering -- possibly opengl32.dll is trying to compensate by
doing a software blit??
2009-06-09 16:37:38 +01:00
Jakob Bornecrantz
77c329a277
pipebuffer: Silence out of heap space debug print
2009-06-08 19:54:55 +02:00
Jakob Bornecrantz
4d9d0e6230
stw: If stfb not set don't call into mesa
2009-06-08 14:45:56 +02:00
Brian Paul
9424d81d18
softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()
...
Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN.
This is a follow-on to commit a59575d8fb .
(cherry picked from commit 086ecea179 )
2009-06-04 13:13:14 -06:00
Brian Paul
6907650211
softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON rendering
...
This fixes incorrect front/back-face orientation.
(cherry picked from commit a64bbdaa3e )
2009-06-04 13:12:13 -06:00
Brian Paul
45e744dddc
tgsi: increase MAX_LABELS to 4096
2009-06-04 13:10:31 -06:00
José Fonseca
273117ceed
util: Unsaved change missing from last commit.
2009-06-02 16:41:45 -07:00
José Fonseca
840af5fd62
util: Support Z24S8/Z24X8 -> unsigned conversion.
2009-06-02 11:46:53 -07:00
José Fonseca
c91df4c153
util: Fix 24 to 32 bit expansion binary arithmetic expression.
...
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-02 11:46:06 -07:00
Keith Whitwell
1aef032d43
gallium/draw: Free specialized versions of driver shaders
...
The pstipple, aaline and aapoint code would create specialized versions
of shaders and upload them to the driver -- but never free them.
2009-06-01 20:35:38 -07:00
Keith Whitwell
003cfd4dd2
draw: free more token arrays
...
The AA line and point code also needs to free token arrays after
building driver shaders.
2009-06-01 20:35:38 -07:00
Keith Whitwell
69a765df1c
draw: avoid leaking tokens when building pstipple fragment shader
...
Add missing FREE() after MALLOC().
2009-06-01 20:35:38 -07:00
José Fonseca
557d2bb423
wgl: Destroy the framebuffer when the window is destroyed.
2009-06-01 20:20:48 -07: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
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
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
30320f0afb
softpipe: add texture target sanity check assertion
2009-05-18 10:13:44 -06:00
Hanno Böck
c8c0953294
gallium: replace lib with $(LIB_DIR)
2009-05-09 16:17:37 -06:00
José Fonseca
b6e2261096
wgl: Grow the maximum number of pixel formats to cope with the new accum pixel formats.
...
Fix a segfault when using softpipe.
2009-05-08 14:57:30 +01:00
José Fonseca
44a996b185
wgl: Export pixelformats with accumulation bits.
2009-05-08 14:57:30 +01:00
Keith Whitwell
e6a3801f3d
util/upload: catch failures to map_range and return error
...
Caller may be able to do something about this - eg flush and retry.
2009-05-08 14:57:30 +01:00
Keith Whitwell
ee79827186
stw: fix potential uninitialized use of curctx
2009-05-08 14:57:29 +01:00
José Fonseca
d5eac43a2e
wgl: Enforce a minimum 1x1 framebuffer size.
2009-05-08 14:57:29 +01:00
José Fonseca
d78b5952c1
wgl: Add assertion for missing function.
2009-05-08 14:57:29 +01:00
José Fonseca
692263aad6
wgl: Remove unused variable.
2009-05-08 14:57:29 +01:00
José Fonseca
4d28fcfeaa
wgl: Implement ShareLists.
2009-05-08 14:57:28 +01:00
José Fonseca
1ed90091be
wgl: Implemente SwapLayerBuffers.
2009-05-08 14:57:28 +01:00
José Fonseca
be3f9dd26c
util: Limit the stack walk to avoid referencing undefined memory.
2009-05-08 14:57:27 +01:00
Keith Whitwell
f628d7f5ee
gallium/tgsi: hack around linker/archiver breakage
...
Add a dummy function which exists only so that tgsi_text_translate()
doesn't get magic-ed out of the libtgsi.a archive by the build system.
Don't remove unless you know this has been fixed - check on
mingw/scons builds as well.
2009-05-08 14:57:27 +01:00
José Fonseca
d075cb4fc8
wgl: Include alpha bits in pixel format's cColorBits field.
2009-05-08 14:57:26 +01:00
Keith Whitwell
af09ba96e9
gallium/draw: cope with unused vertex_elements
2009-05-08 14:57:26 +01:00
José Fonseca
bb9ea58f95
wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
2009-05-08 14:57:26 +01:00
José Fonseca
1248ff7d45
pb: Save the stack backtrace when creating/mapping a debug buffer.
2009-05-08 14:57:26 +01:00
José Fonseca
606a547613
pb: Dump the fenced buffer sizes.
2009-05-08 14:57:26 +01:00
Brian Paul
79ada8c633
gallium: fix texcoords for cubemap mipmap generation
...
We need to use (s,t,r) cubemap coords when sampling from the cubemap texture
so the rendered quad gets texture samples from the correct cube face.
2009-05-05 10:11:51 -06:00