Commit graph

23921 commits

Author SHA1 Message Date
Dave Airlie
a9d64873d7 radeon: further cleanup dri1 screen init 2009-04-28 15:35:52 +10:00
Dave Airlie
7731d93165 r300: remove unused debugging in set tex buffer paths 2009-04-28 15:27:31 +10:00
Dave Airlie
4e7d603fae radeon: remove kernel mm, dri2 path takes care of it 2009-04-28 15:26:24 +10:00
Jakob Bornecrantz
c9b336bc93 gallium-intel: Fix build of dri driver 2009-04-28 01:17:44 +02:00
Thomas Hellstrom
171c7f91cd gallium dri st: Fix up some comments and minor bugs.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28 13:05:54 +02:00
Corbin Simpson
81ded8092a radeon-r300: Fix a bit of breakage.
Not really sure why reordering the ioctls makes them work again.
2009-04-28 03:28:57 -07:00
Corbin Simpson
1ae877d95a radeon: Use PCI_MATCH_ANY for xorg driver.
Might as well.
2009-04-28 03:28:37 -07:00
Thomas Hellstrom
05af5a7f59 gallium: Rename the dri state tracker lib to libdridrm.a 2009-04-28 11:58:27 +02:00
Thomas Hellstrom
0929b2bf3c gallium: indent and cleanfile the dri state-tracker. 2009-04-28 11:54:25 +02:00
Thomas Hellstrom
ca1f5f7e6c gallium: Update the dri2 state tracker to support dri1.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28 11:50:40 +02:00
Thomas Hellstrom
a70c4f352e gallium: Add a dri1 api
that a driver needs to implement on top of the drm api to support dri1.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28 11:45:36 +02:00
Thomas Hellstrom
2e5acd24b0 gallium: Move the dri2 state tracker since we're about to extend it to dri1.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28 11:35:29 +02:00
Thomas Hellstrom
638261b353 gallium: Update the drm_api.
Make it possible to pass state-tracker-specific data to the
init_screen function, and even open the door for device-specific
state-tracker screen initialization.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-28 11:25:56 +02:00
Maciej Cencora
ce0d10dd6c r300: fix fragment program limits 2009-04-27 14:33:24 -04:00
Maciej Cencora
3c6bffa761 r300: fallback only if stencil test is enabled 2009-04-27 14:33:24 -04:00
Maciej Cencora
e33e28f52a r300: do front/back color selection in HW for software TCL path 2009-04-27 14:33:23 -04:00
Maciej Cencora
3d83a709b9 r300: fix valgrind warnings 2009-04-27 14:33:23 -04:00
Maciej Cencora
78c0e6aefc r300: fix point size clamping when point is not attenuated 2009-04-27 14:33:23 -04:00
Robert Ellison
359a58230e Avoid a segfault in shader compilation
If a shader reaches an out-of-memory condition while adding
a new function (reallocating the function list), a segfault
will occur during cleanup (because the num_functions field
is non-zero, but the functions pointer is NULL).

This fixes that segfault by zeroing out the num_functions
field if reallocation fails.
2009-04-27 12:11:24 -06:00
José Fonseca
76b9da9e98 wgl: Cope with pre-existing threads.
DllMain is called with DLL_THREAD_ATTACH only by threads created after
the DLL is loaded by the process.
2009-04-27 18:48:11 +01:00
Brian Paul
dd4802176f i965: #include prog_print.h to silence warning 2009-04-27 10:46:30 -06:00
Brian Paul
777b9ff43e i965: only upload constant buffer data when we actually need the const buffer
Make the use_const_buffer field per-program and only call the code which
updates the constant buffer's data if the flag is set.

This should undo the perf regression from 20f3497e4b

(cherry picked from master, commit dc9705d12d)
2009-04-27 10:45:41 -06:00
José Fonseca
c384ccb0c4 wgl: Implement WGL_EXT_extensions_string extension. 2009-04-27 17:30:05 +01:00
José Fonseca
3ebcf2dd74 util: Remove unix includes. 2009-04-27 17:13:40 +01:00
Brian Paul
dc9705d12d i965: only upload constant buffer data when we actually need the const buffer
Make the use_const_buffer field per-program and only call the code which
updates the constant buffer's data if the flag is set.

This should undo the perf regression from 20f3497e4b
2009-04-27 09:51:46 -06:00
Keith Whitwell
5250eec652 util/time: add util_time_sleep() for windows userspace
Somebody with a clue could probably do a better implemenation...
2009-04-27 14:43:57 +01:00
Keith Whitwell
5ed7764fd6 mesa/st: fix incorrect face, level in compress_with_blit
We were incorrectly applying the destination texture face and level
when requesting a transfer to the temporary texture, which has only
one face and level.  This would obviously cause problems uploading to
compressed cube and mipmap textures.
2009-04-27 14:43:57 +01:00
Shuang He
e326600609 demos: Clean up allocated Textures and Display Lists when demo quit 2009-04-27 07:13:33 -06:00
Maciej Cencora
033d1365e6 r300: fix performance regression
This performance regression on non TCL hw was introduced by ed4c6cbe01.
This patch depends on "r300: always route 4 texcoord components to RS" and "r300: add point attenuation stage for TCL fallbacks".
2009-04-27 19:08:41 +10:00
Maciej Cencora
7f6b13be86 r300: add point attenuation stage for TCL fallbacks 2009-04-27 19:08:12 +10:00
Maciej Cencora
d014d7d1bb r300: always route 4 texcoord components to RS
Routing <4 components may lead to lock up.

Thanks to Alex Deucher for suggestion.
2009-04-27 19:07:50 +10:00
Maciej Cencora
22c0652c38 r300: flush stdout to get consistent debugging info 2009-04-27 19:07:16 +10:00
Maciej Cencora
7ff2dcbbdc r300: add atom print function for kernel mm path 2009-04-27 19:06:38 +10:00
Maciej Cencora
25dd867c58 r300: handle texcoords properly
add 1D texture case and setup default Q value to 1.0
2009-04-27 19:06:00 +10:00
Maciej Cencora
199710914a r300: remove unnecessary function calls
ae_create_context is called by vbo_CreateContext
ae_invalidate_state is called by vbo_InvalidateState
2009-04-27 19:05:37 +10:00
Maciej Cencora
607c6cf188 r300: rename state
According to r300_reg.h from radeon drm module 0x4f30 is ZB_ZMASK_OFFSET.
Also cleanup as trailing whitespaces.
2009-04-27 19:04:52 +10:00
Maciej Cencora
931c89f6f6 r300: remove unnecessary function calls
r300SetEarlyZState is called during r300UpdateShaderStates which is called for every rendering operation.
2009-04-27 19:04:21 +10:00
Brian Paul
b58b3a786a i965: rework GLSL/WM register allocation
Use a bitvector of used/free flags.

If we run out of temps, examine the live intervals of the temp regs in
the program and free those which are no longer alive.

Also, enable the new WM const buffer code.
2009-04-24 16:33:46 -06:00
Brian Paul
7da3f9403b mesa: refactor code and make _mesa_find_temp_intervals() public 2009-04-24 16:28:36 -06:00
Micah Dowty
b618827fac util: Add debug_printf_once 2009-04-24 23:59:21 +02:00
José Fonseca
99b77d05d2 mesa: Call _mesa_snprintf instead of snprintf.
snprintf not directly available on Windows.
2009-04-27 13:09:58 +01:00
José Fonseca
b504721cc7 stw: Use a statically initiallized gl proc table.
It doesn't change anyway.
2009-04-27 12:53:54 +01:00
Maciej Cencora
4486e40143 r300: always emit output insts after all KIL insts 2009-04-27 19:02:39 +10:00
Corbin Simpson
904b563fd0 r300-gallium: Correctly flush Draw.
Should help with a few non-TCL bugs.
2009-04-26 10:06:02 -07:00
Mathias Gottschlag
86d2144412 r300-gallium: Add a draw_flush() to r300_flush().
This fixes some missing primitives which had been drawn right before the next glClear().
2009-04-26 10:01:17 -07:00
Corbin Simpson
233c6fb694 r300-gallium: Fix vertex shader OVM counting.
Attribs must be packed: position, point size, colors, texcoords.

Thanks to osiris for pointing it out.
2009-04-25 16:54:47 -07:00
Corbin Simpson
f45a7a1d1f r300-gallium: Clean up FB state emit. 2009-04-25 16:54:47 -07:00
Mathias Gottschlag
d9f2d0752b r300-gallium: Set framebuffer pitch on every framebuffer change.
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-04-25 16:54:47 -07:00
Jakob Bornecrantz
a098e60903 gallium-intel: Fix warning 2009-04-25 12:56:52 +01:00
Jakob Bornecrantz
5f701f22f0 gallium-intel: Cache software switch 2009-04-25 12:56:52 +01:00