Maciej Cencora
a7bb95bf14
r300: add missing texture format
...
Fixes piglit/texdepth
2009-05-07 20:15:45 -04:00
Maciej Cencora
dc8c717759
r300: moar cleanup
...
- remove unused r300UpdateClipPlanes function
- move reg definition to r300_reg.h
- remove incorrect forward definition of tnl_UpdateFixedFunctionProgram and add proper #include
- remove unreachable code
2009-05-07 20:15:40 -04:00
Maciej Cencora
14365aa0ef
r300: fix compiler warnings
2009-05-07 20:15:34 -04:00
Owen W. Taylor
cfc3ac8d6e
When clearing the stencil buffer, don't use a two-sided stencil
...
In radeon_clear_tris(), when clearing the stencil buffer,
pass GL_FRONT_AND_BACK to _mesa_StencilFuncSeparate(), to avoid
triggering a software fallback on r300 and below.
https://bugs.freedesktop.org/show_bug.cgi?id=21601
2009-05-06 17:10:06 -04:00
Dave Airlie
7f65fea95e
radeon: hopefully fixup radeon cube state emission for kms
2009-05-06 14:43:07 +10:00
Dave Airlie
d7f62e5405
r100/r200: try and allocate miptree correct for hw.
...
This doesn't make things worse but according to sroland it
is how the GPU hw expects things on the r100/r200
2009-05-06 14:06:13 +10:00
Dave Airlie
acf086ebfa
r200: fix cubic emission.
...
Still doesn't fix cubemaps, I really missed the whole drmsupports
thing when testing this all originally
2009-05-06 13:34:34 +10:00
Roland Scheidegger
5f8381724e
r200: fix some cube map issues
...
remove the r100-ism of swapping cube faces which doesn't apply to r200,
and also use precalculated offsets.
Note that cube textures will still not work on r100 and r200 since mipmap
layout is level-first order (for r300) whereas r100/r200 require
face-first (and possibly also 2k alignment for face at least with tiling).
2009-05-05 21:01:36 +02:00
Roland Scheidegger
3503af07c4
r200: fix another section size mismatch
2009-05-05 20:17:37 +02:00
Roland Scheidegger
b2577937b6
r200: fix CS section size mismatch (bug 21565)
2009-05-05 17:45:50 +02:00
Dave Airlie
f616995e5e
radeon/r200: enable all the optional drm support bits
2009-05-05 10:51:44 +10:00
Maciej Cencora
0b22615c2c
r300: set proper texture row alignment for IGP chips
...
Looks like r400 based IGP chips require 64 byte alignment
2009-05-04 12:09:36 -04:00
Alex Deucher
55db6ce537
R300: add quadpipe overrides
...
RV410 SE chips only have 1 quadpipe.
Also, handle other R300 chip with quadpipe override.
2009-04-28 12:50:38 -04:00
Dave Airlie
5ca4f3c5da
radeno: cleanup the startup path further
2009-04-28 15:44:10 +10:00
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
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
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
Jerome Glisse
32d185eb60
r300: fix cliprect values
2009-04-24 19:54:01 +02:00
Jerome Glisse
5dec94696e
r300: emit cliprect when in dri2 mode
2009-04-24 15:03:23 +02:00
Dave Airlie
466c78c935
Merge remote branch 'origin/master' into radeon-rewrite
2009-04-22 21:41:57 +10:00
Thomas Hellstrom
f057f6543d
gallium: Reinstate unconditional flushes.
...
Lost in commit e50dd26ca6 .
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-22 11:42:46 +02:00
Keith Whitwell
009749b4a8
mesa: protect driver.flush() with FLUSH_CURRENT
...
Need to do this to ensure vbo code unmaps its buffers before calling
the driver, which may be sitting on top of a memory manager which
objects to firing commands from a mapped buffer.
2009-04-22 09:03:17 +01:00
Brian Paul
c1a3b85280
st: play it safe for now and check _NEW_PROGRAM for shader const buffer atom
...
When a new program is bound but no constants are updated we still need
to update the Gallium const buffer.
2009-04-21 17:00:54 -06:00
Brian Paul
7872b8e37e
swrast: simplify state update logic for fragment shader const buffers
2009-04-21 17:00:01 -06:00
Brian Paul
3eeefa47d0
st: use the static atoms[] array directly
...
We can simplify this now that we no longer have any dynamic atoms.
2009-04-21 16:50:34 -06:00
Brian Paul
f4f39902fd
st: do away with dynamic state atom for const buffers
...
Just use the new _NEW_PROGRAM_CONSTANTS flag instead.
2009-04-21 16:47:30 -06:00
Brian Paul
64e331eb52
mesa: new _NEW_PROGRAM_CONSTANTS flag
...
This state flag will be used to indicate that vertex/fragment program
constants have changed. _NEW_PROGRAM will be used to indicate changes
to the vertex/fragment shader itself, or misc related state.
_NEW_PROGRAM_CONSTANTS is also set whenever a program parameter that's
tracking GL state has changed. For example, if the projection matrix is
in the parameter list, calling glFrustum() will cause _NEW_PROGRAM_CONSTANTS
to be set. This will let to remove the need for dynamic state atoms in
some drivers.
For now, we still set _NEW_PROGRAM in all the places we used to. We'll no
longer set _NEW_PROGRAM in glUniform() after drivers/etc have been updated.
2009-04-21 16:21:32 -06:00
Brian Paul
8a22e24fae
mesa: print internal.current[i] attrib
2009-04-21 16:21:32 -06:00
Brian Paul
ac1fc3f465
mesa: print parameter list dirty state flag mask
2009-04-21 16:21:32 -06:00
Brian Paul
08e7f09f34
i965: const correctness
2009-04-21 16:21:32 -06:00
Michel Dänzer
6bd4bc785e
Update GALLIUM_AUXILIARY_DIRS in configure.ac to match configs/default.
2009-04-21 18:32:42 +01:00
Maciej Cencora
584303ac8e
r300: r300 hw doesn't support any input modifiers in tex insts
2009-04-21 12:14:35 -04:00
Mathias Gottschlag
b8fff1f9f1
r300-gallium: Fix CS size mismatch
...
This fixes some warnings which appear because the driver assumes a wrong
cs size (13 vs 16 register writes in some cases).
2009-04-21 09:52:30 -06:00
Brian Paul
dad1c1be18
demos: check that GL version is 2.0 or higher
2009-04-21 07:27:27 -06:00
Brian Paul
25e3a53403
st: report GL_OUT_OF_MEMORY instead of asserting
2009-04-21 07:27:26 -06:00
Keith Whitwell
e20f837f67
trivial/tri-viewport: add keys for frustrum/ortho and z coordinate
2009-04-21 11:40:59 +01:00