Keith Whitwell
3d4b60f1f7
llvmpipe: reduce size of fragment shader variant key
...
Don't spend as much time comparing them.
2010-08-22 14:49:17 +01:00
Keith Whitwell
49a2ea082b
llvmpipe: remove unused member from lp_fragment_shader_variant_key
2010-08-22 14:49:17 +01:00
Keith Whitwell
0ad82b8d28
llvmpipe: don't clear unused bins
...
If bins outside the current scene bounds are being corrupted, we'll
need to fix that separately. Currently seems ok though.
2010-08-22 14:49:17 +01:00
Keith Whitwell
a1de6f48c3
draw: reduce the size of the llvm variant key
2010-08-22 14:49:16 +01:00
Keith Whitwell
8b15de2736
glx/xlib: remove another XSync
...
With this change, xmesa_get_window_size still does one round trip, but
that's better than doing two.
2010-08-22 14:48:24 +01:00
Keith Whitwell
8570232b3b
glx/xlib: no need to call XSync from XMesaFlush
...
Try to eliminate some unnecessary X server round trips.
2010-08-22 14:48:24 +01:00
Luca Barbieri
7de1f86c49
nvfx: simplify and correct fragment program update logic
...
This version should hopefully be much clearer and thus less likely
to be subtly broken.
Also fixes point sprites on nv40 and possibly some other bugs too.
2010-08-22 15:42:17 +02:00
Luca Barbieri
9fefab340f
nvfx: make stipple setting independent of enable
2010-08-22 15:42:16 +02:00
Luca Barbieri
793e398681
nvfx: fix vertex programs
2010-08-22 15:42:16 +02:00
Luca Barbieri
a0c45eabf9
nvfx: use relocations array for vp constants
2010-08-22 15:42:16 +02:00
Henri Verbeet
8a878c266a
r600g: Don't blindly unmap NULL->size.
...
There may actually be something mapped in that range, especially for large
buffers like e.g. the GL Drawable.
2010-08-22 12:43:11 +02:00
José Fonseca
04094b2da2
svga: Do not shortcut NULL surface relocations with SVGA3D_INVALID_ID.
...
How to cope with NULL surface relocations should be entirely at winsys'
discretion.
2010-08-22 11:37:28 +01:00
Vinson Lee
df604834d3
libgl-xlib: Include missing header in xlib.c.
...
Include st_api.h for st_api_create_OpenGL symbol.
2010-08-22 00:30:47 -07:00
Vinson Lee
928830606f
nvfx: Silence unused variable warning.
...
The variable is used but only in the body of an assert.
2010-08-22 00:16:54 -07:00
Vinson Lee
3bdbccef2a
util: Use #ifdef instead of #if.
...
This is a typo fix of earlier commit 0f3b3751b8 .
2010-08-21 23:36:30 -07:00
Vinson Lee
0f3b3751b8
util: Define dump_cpu only for DEBUG builds.
...
dump_cpu is used only when DEBUG is defined.
Fixes the following GCC warning on builds without DEBUG defined.
util/u_cpu_detect.c:76: warning: 'debug_get_option_dump_cpu' defined but not used
2010-08-21 23:28:52 -07:00
Vinson Lee
2a7493ada4
translate_sse: Silence uninitialized variable warnings.
...
Initialize variables on error paths.
2010-08-21 23:24:28 -07:00
Vinson Lee
172953ef3a
nvfx: Silence uninitialized variable warnings.
...
Variables weren't initialized on the error paths.
2010-08-21 22:59:46 -07:00
Vinson Lee
fdedff2dba
i965g: Silence printf format warnings on 64-bit builds.
2010-08-21 22:45:09 -07:00
Vinson Lee
68d34f2979
nvfx: Silence uninitialized variable warnings.
...
Silence the following i686-apple-darwin10-gcc-4.2.1 warnings.
nv04_2d.c: In function 'nv04_region_copy_cpu':
nv04_2d.c:560: warning: 'dswy' may be used uninitialized in this function
nv04_2d.c:559: warning: 'dswx' may be used uninitialized in this function
nv04_2d.c:562: warning: 'sswy' may be used uninitialized in this function
nv04_2d.c:561: warning: 'sswx' may be used uninitialized in this function
2010-08-21 22:15:22 -07:00
Vinson Lee
4a06525737
nv50: Silence incompatible pointer type initialization warning.
...
Silence the following GCC warning.
warning: initialization from incompatible pointer type
2010-08-21 22:01:04 -07:00
Vinson Lee
2506b32eec
nv50: Disable unused code.
...
Disable release_hw and emit_mov_from_pred functions as they are
currently not being used.
2010-08-21 21:42:17 -07:00
Vinson Lee
973c065abe
i965g: Fix printf format warning on 32-bit platforms.
...
Fixes the following GCC warning on 32-bit platforms.
warning: format '%li' expects type 'long int', but argument 4 has type 'int'
2010-08-21 21:27:43 -07:00
Jerome Glisse
36efb86c05
r600g: partialy fix texturing from depth buffer + initial support for untiling
...
Partialy fix texturing from depth buffer, depth buffer is tiled
following different tile organisation that color buffer. This
properly set the tile type & array mode field of texture sampler
when sampling from db resource.
Add initial support to untiling buffer when transfering them,
it's kind of broken by corruption the vertex buffer of previous
draw.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-21 22:52:38 -04:00
José Fonseca
ae34a6393e
draw: Don't assert if indices point outside vertex buffer.
...
This is valid input, and asserting here does causes the test suites that
verify this to crash.
Also, the assert was wrongly accepting the case
max_index == vert_info->count
which, IIUC, is the first vertex outside the buffer. Assuming the
vert_info->count is precise (which often is not the case).
2010-08-22 02:26:44 +01:00
Vinson Lee
be99100ee7
util: Silence uninitialized variable warnings.
2010-08-21 15:49:17 -07:00
Luca Barbieri
4edeeaf715
nvfx: actually fix it properly
2010-08-21 23:53:39 +02:00
Luca Barbieri
251e48c64a
nvfx: fix incorrect assert
2010-08-21 23:45:32 +02:00
Vinson Lee
4a6eb492e8
util: Move loop variable declaration outside for loop.
...
Fixes build error with MSVC.
2010-08-21 14:36:29 -07:00
Vinson Lee
489c787b80
nvfx: Fix SCons build.
...
Move declarations before code.
Fix void pointer arithmetic.
2010-08-21 14:29:50 -07:00
Luca Barbieri
11d27871a7
nvfx: fix warnings
2010-08-21 23:09:43 +02:00
José Fonseca
0d96cbe4a5
gallivm: Emit DIVPS instead of RCPPS.
...
See comments for detailed rationale.
Thanks to Michal Krol and Zack Rusin for detecting and investigating this
in detail.
2010-08-21 21:58:22 +01:00
Luca Barbieri
42210f4464
nvfx: enable translate_sse
2010-08-21 21:56:29 +02:00
Vinson Lee
15d558c306
auxiliary: Add missing files to SCons build.
...
Add u_linear.c and u_linkages.c to SCons build.
Reorder list of files to be more alphabetical.
2010-08-21 12:32:17 -07:00
Vinson Lee
683118ccf2
auxiliary: Reorder list of files in Makefile.
...
This patch reorders the list of files so that the order is more alphabetic.
2010-08-21 12:21:59 -07:00
Vinson Lee
1badd3c43f
scons: Fix nvfx build.
2010-08-21 12:00:57 -07:00
Luca Barbieri
d8e210eb11
nvfx: slightly improve handling of overlong vps
2010-08-21 20:42:15 +02:00
Luca Barbieri
5eddf95be9
nvfx: tweak CMP in fp
2010-08-21 20:42:15 +02:00
Luca Barbieri
8983621c6b
nvfx: implement CMP in vp
2010-08-21 20:42:15 +02:00
Luca Barbieri
923f5c97b1
nvfx: implement TXL in fp
2010-08-21 20:42:15 +02:00
Luca Barbieri
847ac88671
nvfx: implement SSG in fp
2010-08-21 20:42:15 +02:00
Luca Barbieri
32d2525d64
nvfx: implement DP2 in vp and fp
2010-08-21 20:42:15 +02:00
Luca Barbieri
4aec8aa2e3
nvfx: implement TRUNC in vp and fp
2010-08-21 20:42:15 +02:00
Luca Barbieri
587d26fdf9
nvfx: implement NOP
2010-08-21 20:42:15 +02:00
Luca Barbieri
fe3c62dd77
nvfx: add vertex program control flow
2010-08-21 20:42:15 +02:00
Luca Barbieri
5287d86a0b
nvfx: fix vertex shader headers
2010-08-21 20:42:15 +02:00
Luca Barbieri
af4a6eba55
nv40: add fragment program control flow
2010-08-21 20:42:15 +02:00
Luca Barbieri
cf0d156422
nvfx: refactor shader assembler
2010-08-21 20:42:15 +02:00
Luca Barbieri
28fa9451e1
nvfx: add option to dump shaders in TGSI and native code
2010-08-21 20:42:15 +02:00
Luca Barbieri
b2bad53478
nvfx: improve and correct nvfx_shader.h
2010-08-21 20:42:15 +02:00