Commit graph

92185 commits

Author SHA1 Message Date
Brian Paul
0bc2409e38 mesa: Replace Proxy1D/2D/etc with ProxyTex[] indexed by TEXTURE_x_INDEX.
Simplification in colortab.c too.

cherry-picked from master (fe46900703)
2008-07-04 10:37:07 -06:00
Brian Paul
a3de65659c gallium: fix st_choose_format(internalFormat=GL_RGBA16)
Need to check if we're choosing a surface or texture format.
2008-07-04 10:35:32 -06:00
Brian Paul
2fa7b3f786 mesa: Implement mutex/locking around texture object reference counting.
Use new _mesa_reference_texobj() function for referencing/unreferencing
textures.  Add new assertions/tests to try to detect invalid usage of
deleted textures.

cherry-picked from master (9e01b915f1)
2008-07-04 10:29:15 -06:00
Nicolai Haehnle
e187627c1d r300: Fix depth texture in compare mode
Missed the homogenous divide of R by Q before...
2008-07-04 18:22:16 +02:00
Nicolai Haehnle
845e3f701d Enable TexGen based on InputsRead when a fragment program is active
The old behaviour depended on which texture images the fragment program
reads from, which seems to contradict the shader specifications.

Note: Piglit's general/texgen test checks for this problem.
2008-07-04 18:22:15 +02:00
Brian Paul
1f4d0748ba GLSL-related bug fixes 2008-07-04 10:05:39 -06:00
Brian Paul
e06565b103 mesa: generate GL_INVALID_OPERATION in _mesa_get_uniform_location() if program isn't linked 2008-07-04 10:04:03 -06:00
Brian Paul
b931a0c1d9 mesa: remove incorrect assertion 2008-07-04 10:04:03 -06:00
Brian Paul
9ca1c62a96 gallium: replace assertion with conditional 2008-07-04 10:02:44 -06:00
Brian Paul
ba9e633902 gallium: fix trim() function bug when count < first
If the user called glDrawArrays(GL_TRIANGLES, count=1), trim() returned a
very large integer because of the unsigned arithmetic.
2008-07-04 10:02:43 -06:00
Brian Paul
294b061256 mesa: generate GL_INVALID_OPERATION in _mesa_get_uniform_location() if program isn't linked 2008-07-04 10:02:43 -06:00
Brian Paul
c4b6941e62 mesa: move assertion 2008-07-04 10:02:43 -06:00
José Fonseca
4a18324c0b psb: Fill all texture fields when creating texture blanket. 2008-07-05 00:56:36 +09:00
José Fonseca
1942e29bf7 softpipe: Implement texture blankets. 2008-07-05 00:55:18 +09:00
Ben Skeggs
77f8167d75 Merge remote branch 'upstream/gallium-0.1' into gallium-0.1 2008-07-05 00:53:13 +10:00
José Fonseca
194cfc7a4e scons: Enable gcc SSE2 intrinsics on x86. 2008-07-04 22:28:57 +09:00
Alan Hourihane
9157b1e09a glcontextmodes.c is required remove the reference in .gitignore 2008-07-04 13:54:49 +01:00
Xiang, Haihao
0c1e96e6d3 mesa: fix polygon offset issue (bug #12061) 2008-07-04 09:53:51 +08:00
Brian Paul
dd3311aa89 mesa: added _vbo_VertexAttrib4f() 2008-07-03 17:21:23 -06:00
Brian Paul
7366f3fc54 mesa: fix incorrect array size, added assertion 2008-07-03 17:21:23 -06:00
Brian Paul
0ed3f6f575 mesa: fix array storage allocation bug 2008-07-03 17:21:23 -06:00
Brian Paul
22ac107971 mesa: regenerated file 2008-07-03 17:21:22 -06:00
Brian Paul
4d1d6ed159 mesa: additional vec4 constructor 2008-07-03 17:21:22 -06:00
Brian Paul
d4172263e5 mesa: fix various error codes 2008-07-03 17:21:22 -06:00
Brian Paul
bb18a8b2ea mesa: fix some error codes in _mesa_ShaderSourceARB() 2008-07-03 17:21:22 -06:00
Brian Paul
d015ffa6ea mesa: fix problem freeing framebuffer/renderbuffer objects
Basically, set up no-op Delete() methods for the DummyFrame/Renderbuffer obj
2008-07-03 17:21:22 -06:00
Brian Paul
51abbdd227 gallium: added a4r4g4b4_put_tile_rgba() 2008-07-03 17:21:22 -06:00
Brian Paul
78388c0e37 mesa: added case for fixed pt 2008-07-03 17:21:22 -06:00
Brian Paul
f042d662e2 gallium: increase TGSI interpreter's number of temp registers to 64
Also, clean up the definitions of the misc/extra temp regs.
A few new assertions too.
2008-07-03 17:21:22 -06:00
Brian Paul
00eb309c31 gallium: move, increase ST_MAX_SHADER_TOKENS 2008-07-03 17:21:22 -06:00
Brian Paul
3c12874857 gallium: increase TGSI_EXEC_MAX_COND_NESTING, etc 2008-07-03 17:21:21 -06:00
Brian Paul
530df581dd mesa: fix various error codes 2008-07-03 16:21:11 -06:00
Brian Paul
011185396b mesa: fix some error codes in _mesa_ShaderSourceARB() 2008-07-03 16:02:05 -06:00
Brian Paul
3dc6591a7c mesa: fix problem freeing framebuffer/renderbuffer objects
Basically, set up no-op Delete() methods for the DummyFrame/Renderbuffer objects.
2008-07-03 15:40:38 -06:00
Patrice Mandin
6f56b527d8 nv30: Reemit state when changing context 2008-07-03 22:47:15 +02:00
Patrice Mandin
568b477b9c nv30: Emit viewport state using state objects 2008-07-03 22:42:30 +02:00
Patrice Mandin
e7e231a511 nv30: Emit polygon stipple state using state objects 2008-07-03 22:31:23 +02:00
Patrice Mandin
f1d24c1d27 nv30: Emit scissor state using state objects 2008-07-03 22:18:38 +02:00
Patrice Mandin
c66f376e27 nv30: Emit depth/stencil/alpha state using state objects 2008-07-03 22:10:53 +02:00
Brian Paul
7acb7c1ac0 mesa: additional error checking, fix error codes 2008-07-03 13:49:48 -06:00
Patrice Mandin
360f7a3e23 nv30: Emit rasterizer state using state objects 2008-07-03 21:48:18 +02:00
Patrice Mandin
c0e9eb3b09 nv30: Emit blend state using state objects 2008-07-03 21:25:47 +02:00
Brian Paul
d866cb3712 mesa: regenerated file 2008-07-03 13:24:28 -06:00
Brian Paul
7f4f2ac39d mesa: additional vec4 constructor 2008-07-03 13:24:19 -06:00
Patrice Mandin
52cf7a6c1c nv30: Emit blend color state using state objects 2008-07-03 21:11:07 +02:00
Brian Paul
6e46c121f9 mesa: fix array storage allocation bug 2008-07-03 13:05:28 -06:00
Brian Paul
1dc20c7916 mesa: fix incorrect array size, added assertion 2008-07-03 13:03:35 -06:00
Patrice Mandin
36488ed052 nv30: Emit framebuffer state using state objects 2008-07-03 20:58:31 +02:00
Brian Paul
2212c214f1 gallium: fix surface memleak in bitmap code
Found w/ tunnel2.c demo.
2008-07-03 10:12:37 -06:00
José Fonseca
ade03755bc pipebuffer: Silent warnings.
Although rarely hit in normal apps, they are too noisy with test suites.
2008-07-03 21:28:56 +09:00