Commit Graph

29044 Commits

Author SHA1 Message Date
Brian Paul 7a01b13324 llvmpipe: fix transposed stencil ref / values comparison 2010-04-09 10:52:51 -06:00
Brian Paul 75b8c4a8f8 Merge branch '7.8' 2010-04-09 10:09:24 -06:00
Brian Paul 4ae2bdcb15 st/mesa: new assertions to check array indexes 2010-04-09 10:08:27 -06:00
Brian Paul b22a00bff4 mesa: fix instruction indexing bugs
We were looping over instructions but only looking at the 0th instruction's
opcode.

Fixes fd.o bug 27566.
2010-04-09 10:03:36 -06:00
José Fonseca c2e87d7f07 util: Fix typo in earlier commit. 2010-04-09 16:56:18 +01:00
José Fonseca 142fb27c3b util: ubyte_to_float and float_to_ubyte whenever possible.
More accurate results.

We should probably generalize these functions for more cases.
2010-04-09 16:53:07 +01:00
José Fonseca 866d22ccce util: Get all depth stencil tests passing.
Note the tests don't test all the paths, in particular stride, and
ensuring the old value is preserved.
2010-04-09 16:32:48 +01:00
José Fonseca f9a0d1e234 util: Add missing break statement. 2010-04-09 16:32:48 +01:00
José Fonseca 7603173774 util: Use consistent symbols in pack generator. 2010-04-09 16:32:48 +01:00
José Fonseca b1cfc195bb util: Reorder format tests -- group by format. 2010-04-09 16:32:47 +01:00
José Fonseca d3808b1b1f util: Add dedicated depth-stencil packing/unpacking functions.
Depth-stencil manually written given that each one is very close to
be a special case.

u_format_zs.c's still untested.
2010-04-09 16:32:47 +01:00
Corbin Simpson 51c4068051 st/xorg: Fix thinko. 2010-04-09 06:52:18 -07:00
Ben Skeggs 54526154c5 nouveau: Import latest nouveau_class.h from renouveau
And fix nv50_screen.c to compile against the updated header.
2010-04-09 20:59:36 +10:00
Corbin Simpson 8ddb4e2c81 st/xorg: Fix bad paramf.
Should be an integer param, according to docs.
2010-04-09 03:40:11 -07:00
Corbin Simpson d2cf1e85c8 r300g: Fill out dummy fence functions.
xorg st needs them.
2010-04-09 03:40:11 -07:00
Corbin Simpson 9c2efb071f util: Include u_debug for debug_print_format.
Caused fun linker errors on r600g.
2010-04-09 03:40:11 -07:00
Chia-I Wu b80b817195 st/egl: Move probe interface to native_probe.h.
native.h is getting a little messy over time.
2010-04-09 17:52:37 +08:00
Chia-I Wu f69b35fa15 st/egl: Remove pbuffer from the native interface.
A pbuffer is an EGL resource.  It does not need a native display to
create.
2010-04-09 17:52:37 +08:00
Vinson Lee 08100aa444 util: Set DXTN_LIBNAME to libtxc_dxtn.dylib on Mac OS X. 2010-04-09 00:40:15 -07:00
Brian Paul bab6c0a035 st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression
Commit 1454f20a99 caused the regression.
When the vertex shader emitted both a texcoord and color we were grabbing
the wrong vertex attributes.  Fix the draw_quad() code to put texcoords
in slot[1] and color in slot[2].  That's a bit cleaner than changing
the vertex shader code.

Tested with progs/tests/zreaddraw.c
2010-04-08 13:11:29 -06:00
José Fonseca c6781e9c78 util: Support PIPE_FORMAT_B4G4R4X4_UNORM and PIPE_FORMAT_R8G8B8X8_UNORM. 2010-04-08 19:48:02 +01:00
José Fonseca 4459a21e07 gallium: Add a couple more of D3D9 formats forgotten earlier. 2010-04-08 19:47:40 +01:00
Li Peng 8ac7d7fa05 intel: Call intel_prepare_render() in intelClear()
Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.
2010-04-08 14:20:14 -04:00
José Fonseca 89ceb2f3c7 util: (Almost) universal format translation function.
Untested.
2010-04-08 19:03:41 +01:00
José Fonseca 956b2f74d8 util: Describe, implement, and test the new D3D9 color formats. 2010-04-08 19:03:41 +01:00
José Fonseca 1320017049 gallium: Add missing D3D9 color formats. 2010-04-08 19:03:40 +01:00
José Fonseca 948ac63112 util: is_array/mixed/etc is only meaningful for plain formats. 2010-04-08 19:03:40 +01:00
José Fonseca 350bbc946a util: Keep const keyword when unpacking formats. 2010-04-08 19:03:40 +01:00
José Fonseca 3f62664679 util: Reorder the code generated function so that they are grouped by format.
Makes it easier to copy and paste.
2010-04-08 19:03:40 +01:00
Li Peng 9599da3374 intel: Call intel_prepare_render() in intelClear()
Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.
2010-04-08 13:52:55 -04:00
Zack Rusin 074084d563 draw llvm: hook up the generated function into the draw elts path
we were only using the jited function in the linear case, now drawelts
correctly uses the same path. it results in a significant gain in
real world apps (openarena went from 23fps to 29fps)
2010-04-08 10:53:21 -04:00
José Fonseca 3ceafcf143 draw: Fix vertex buffer indexation. 2010-04-08 11:00:42 +01:00
José Fonseca d2f8162f91 util: Don't call util_dl_close(library) when util_format_s3tc_init is successful."
Otherwise the library will be unloaded and function pointers become invalid.

This reverts commit bc2bc0306e.
2010-04-08 10:36:16 +01:00
Vinson Lee bc2bc0306e util: util_dl_close(library) before exiting util_format_s3tc_init. 2010-04-08 00:55:16 -07:00
Vinson Lee 01ec162d53 draw llvm: Remove unnecessary header. 2010-04-08 00:30:40 -07:00
Vinson Lee 94e5bc23e7 llvmpipe: Remove unnecessary header. 2010-04-08 00:18:46 -07:00
Dave Airlie dff50ff592 Merge remote branch 'origin/7.8'
Conflicts:
	Makefile
	configs/default
	src/mesa/main/version.h
2010-04-08 16:48:41 +10:00
Chia-I Wu 968bf9634e st/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.
When the format is __DRI_TEXTURE_FORMAT_RGB, the texture should be
treated as if there is no alpha channel.
2010-04-08 16:47:11 +10:00
Dave Airlie 4b39a0da89 texenvprogram: fix for ARB_draw_buffers.
piglit has a test called fbo-drawbuffers, this fails for me on r300g,
and fixing the texenv program to use the DATA outputs fixes it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-08 15:19:52 +10:00
Zack Rusin 821abff8c0 draw llvm: highly reduce the compilation times for draw llvm
our code resets pipe_vertex_buffer's with different offsets when rendering
vbo, meaning that we kept creating insane number of shaders even for simple
apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to
compile them. this patch passes pipe_vertex_buffer's to the jit function and lets
it to the stride/buffer_offset computation at run time. the slowdown at runtime
is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less
than 1.
2010-04-07 17:50:11 -04:00
José Fonseca 40bac07f9b gallivm: Get the format translation logic write. 2010-04-07 22:17:07 +01:00
José Fonseca 2c06fa4682 util: Support fixed formats conversion. 2010-04-07 22:16:18 +01:00
José Fonseca 783e94243a util: Add copyright header to u_half.h 2010-04-07 21:00:18 +01:00
José Fonseca f15469039a util: Remove the half typedef from p_compiler.h.
Unnecessary, and doesn't even guarantee size.
2010-04-07 21:00:05 +01:00
José Fonseca 68df294997 llvmpipe: Add missing include. 2010-04-07 20:55:31 +01:00
José Fonseca d96e87c3c5 util: Use stubs for the dynamically loaded S3TC functions.
Loosely based on Luca Barbieri's commit
52e9b990a1.
2010-04-07 20:47:38 +01:00
José Fonseca a46ca64562 draw: Fix MSVC build (snprintf->util_snprintf). 2010-04-07 20:41:09 +01:00
José Fonseca ecdd6bc3e2 util: Remove u_tile.c YCbCr's.
Superseded by u_format_yuv.c. Also PIPE_FORMAT_YUYV's interpretation was
inconsistent: it was being interpreted as VYUY.
2010-04-07 19:58:18 +01:00
José Fonseca 7f9444050f util: Implement YUV and subsampled RGB format conversion. 2010-04-07 19:47:24 +01:00
Brian Paul 78fd65fd2c draw: init draw->pt.middle.general = NULL just to be safe
This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).
2010-04-07 07:09:57 -06:00