Brian Paul
82dd62fb22
mesa: new MESA_EXTENSION_MAX_YEAR env var
...
If set to year X, only report extensions up to that year. This is a
work-around for games that try to copy the extensions string to a fixed
size buffer and overflow. If a game was released in year X, setting
MESA_EXTENSION_MAX_YEAR to that year will likely fix the problem.
2011-03-24 11:39:23 -06:00
Brian Paul
4c75d5ae63
svga: adjust triangle rasterization offset
...
Fixes minor sub-pixel positioning error in some apps.
2011-03-24 11:32:38 -06:00
Iain Hibbert
c22a7f9045
radeon: use C99 style in macros with variable arguments
...
Signed-off-by: Iain Hibbert <plunky@netbsd.org>
2011-03-24 08:36:31 -06:00
Brian Paul
ff2950dd69
radeon: reorder #includes to silence warnings
...
Silences warnings about RADEON_TILING_SURFACE being redefined.
Only compile tested, not run tested.
2011-03-24 08:34:44 -06:00
Brian Paul
b5745429d7
r128: fix an old annoying warning
2011-03-24 08:29:28 -06:00
Brian Paul
7d40bf2566
radeon: fix radeon_create_image_from_name() wrong parameter type
2011-03-24 08:29:28 -06:00
José Fonseca
f4e392bf8d
st/wgl: Adjust the pbuffer invisible window size.
...
Thanks to Brian Paul for diagnosing the issue.
2011-03-24 10:47:03 +00:00
José Fonseca
81992010b5
mesa: More glGet* fixes.
...
glGet(GL_NORMAL_ARRAY) giving potentially wrong results.
Most of glGet(GL_XXX_ARRAY_BUFFER_BINDING) giving totally bogus results.
2011-03-23 16:47:41 +00:00
Brian Paul
12b9e07966
mesa: remove unused _MESA_NEW_NEED_NORMALS
2011-03-23 09:05:04 -06:00
Brian Paul
7ecb61c30c
mesa: remove _MESA_NEW_TRANSFER_STATE
2011-03-23 09:04:22 -06:00
José Fonseca
f6970872c0
mesa: Fix typo glGet*v(GL_TEXTURE_COORD_ARRAY_*).
2011-03-22 22:48:02 +00:00
Fabian Bieler
8d7c12de1e
r600g: Check for relative addressing in destination register when trying to merge instruction groups
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-03-22 21:24:09 +01:00
Dave Airlie
e4b040c2b9
r600g: fix bo names causing -35 EDEADLCK
...
this is a port of the r300 winsys code to do the same thing.
2011-03-22 11:48:36 +10:00
José Fonseca
b881ea87f1
svga: Avoid synchronizing when doing piecewise upload of textures.
2011-03-21 18:47:24 +00:00
José Fonseca
29288249e3
svga: Undo the DMA buffer size limiting.
...
Move this to the winsys, given it is not a virtual device limitation,
but a limitation specific to certain winsyses.
Also update debug message.
2011-03-21 18:46:59 +00:00
Dave Airlie
9b13c988ac
glapi: drop glapi.[ch] and glapitemp.h from being copied to the X server.
...
These files are no longer considered shared as the X code is a lot simpler
without sharing them.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-21 12:03:20 +10:00
Brian Paul
cfc7ded3ff
mesa: 80-column wrapping and comment updates
2011-03-19 14:17:42 -06:00
Brian Paul
d0d767ad4c
mesa: 80-column wrapping, update comment
2011-03-19 14:17:41 -06:00
Brian Paul
912c4ec6df
gl.h: reorder some #defines
2011-03-19 14:17:41 -06:00
Brian Paul
933b99f113
mesa: consolidate enable/disable code for GL_TEXTURE_GEN_S/T/R/Q
2011-03-19 14:17:41 -06:00
Brian Paul
ec4a21b0e2
mesa: consolidate clip plane update code
2011-03-19 14:17:41 -06:00
Brian Paul
957552fce0
mesa: 80-column wrapping
2011-03-19 14:17:41 -06:00
Brian Paul
aafcbd2cf7
mesa: replace macro with function
2011-03-19 14:17:41 -06:00
Brian Paul
9459cc593c
mesa: 80-column wrapping
2011-03-19 14:17:41 -06:00
Brian Paul
630d925666
mesa: rename functions to follow Mesa conventions
2011-03-19 14:17:40 -06:00
Brian Paul
79f4281a52
mesa: 80-column wrapping
2011-03-19 14:17:40 -06:00
Christoph Bumiller
83ff3809f1
nv50,nvc0: implement texture barrier
2011-03-19 14:45:55 +01:00
Tom Stellard
9d2ef284bb
r300/compiler: Use a 4-bit writemask in pair instructions
...
We now use a 4-bit writemask for all instruction types, which makes it
easier to write generic helper functions to manipulte writemasks.
NOTE: This is a candidate for the 7.10 branch.
2011-03-18 12:04:20 -07:00
Johannes Obermayr
8042d751de
nouveau: Fix serious compiler warnings
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=35025
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-03-18 12:10:11 -06:00
Brian Paul
5b902a08c1
mesa: minor improvements in glTexEnvfv()
2011-03-17 20:31:58 -06:00
Brian Paul
582570a04c
mesa: only report up to 50 _mesa_problem() calls
...
http://bugs.freedesktop.org/show_bug.cgi?id=35200 reports a disk
partition getting filled because of warning messages. Stop emitting
after 50.
2011-03-17 20:31:58 -06:00
Brian Paul
147148fd50
swrast: report data type in error message
2011-03-17 20:31:58 -06:00
Kenneth Graunke
5e9aa9926b
mesa: Remove the CompileShader driver hook; it's just a no-op.
2011-03-17 14:48:54 -07:00
Brian Paul
cbadedb511
mesa: use _mesa_get_current_tex_unit() helper in BindTexture()
2011-03-16 21:13:31 -06:00
Brian Paul
552f54bf04
mesa: remove unneeded local var in BindTexture()
2011-03-16 21:13:31 -06:00
Brian Paul
dfda559b98
mesa: clean up the glBindTexture early out code a bit
2011-03-16 21:13:31 -06:00
Kenneth Graunke
2279156fe7
i965: Rename brw_(IF|CONT)_gen6 functions to gen6_(IF|CONT).
2011-03-16 14:18:03 -07:00
Tobias Droste
f3a828c21f
autoconf: don't use CFLAGS for cpp files
...
Signed-off-by: Tobias Droste <tdroste@gmx.de>
2011-03-16 13:54:50 -07:00
Kenneth Graunke
2baac48f39
i965: Rename BRW_DATAPORT_..._GEN6 messages to GEN6_... for consistency.
2011-03-16 13:51:44 -07:00
Kenneth Graunke
cc48d663f7
i965: Rename BRW_SAMPLER_MESSAGE_..._GEN5 to GEN5_SAMPLER_MESSAGE.
...
We already have lots of GEN6_* defines; this seems more consistent.
2011-03-16 13:51:44 -07:00
José Fonseca
b47d508412
svga: Leave any_user_vertex_buffers flag alone.
...
It is pointless to change, now that we don't replace user vertex buffer
with uploaded copy, per commit 52e598d200 .
2011-03-16 15:46:21 +00:00
José Fonseca
74651f5738
svga: Hardcode SVGA_COMBINE_USERBUFFERS to 1.
...
The code no longer supports otherwise -- it relies on buffers being
uploaded via u_upload_mgr -- so make this clear.
Also, there's no need to flush after draws from user buffers, given all
user content should have been copied by then.
2011-03-16 15:43:00 +00:00
José Fonseca
8767fe2437
mesa: Sort extensions in extension string by year.
...
The years were obtained automatically by scraping the first year from
the spec text file. They are approximate.
2011-03-16 11:38:53 +00:00
José Fonseca
e08a3d674a
svga: Use transfer information on buffer transfers.
...
Should prevent the assert failure
svga_buffer_flush_mapped_range: Assertion `sbuf->map.writing' failed.
on nested transfers.
2011-03-16 11:21:12 +00:00
José Fonseca
6b3713f8b8
glsl2: Silence unused added variable gcc warning.
2011-03-16 09:16:01 +00:00
José Fonseca
5fc5820cbc
mesa: Use typecast in BITFIELD64_BIT macro.
...
Unsigned long is 32bit on several platforms (e.g., Windows), yielding
1UL << 32 to be zero.
Note that BITFIELD64_BIT result is often assigned to variables of type
GLbitfield, instead of GLbitfield64. That's probably wrong and should be
addressed in a later change.
2011-03-16 09:15:30 +00:00
Brian Paul
11150e4667
mesa: use BITFIELD64_BIT() macro
2011-03-15 18:21:36 -06:00
Brian Paul
aa878f94ab
st/mesa: use BITFIELD64_BIT() macro in a few more places
2011-03-15 18:21:35 -06:00
Brian Paul
d350ef1682
glsl: add cast to silence signed/unsigned comparison warning
2011-03-15 18:21:35 -06:00
Brian Paul
d029ba9ec0
mesa: use 1UL for 64-bit unsigned constant for C++
...
This fixes C++ warnings where BITFIELD64_BIT() is used.
2011-03-15 18:21:35 -06:00