Brian Paul
6f445a1061
in run_texnorm_stage() check if the texture unit is really enabled before trying to normalize the texcoords
2005-11-19 17:08:15 +00:00
Brian Paul
41c8eabe0f
update some vars
2005-11-19 16:50:36 +00:00
Brian Paul
63d683091f
No longer derive 'ati_fragment_shader' from 'program' class. Only the
...
program->Id and program->RefCount fields were used and ATI fragment shaders
didn't have too much in common with ARB/NV vertex/fragment programs anyway.
2005-11-19 16:43:04 +00:00
Brian Paul
430c469c5b
remove #include arbfragparse.h
2005-11-19 15:44:53 +00:00
Brian Paul
47e511c36d
remove #include arbfragparse.h, s/PI/M_PI/
2005-11-19 15:42:39 +00:00
Brian Paul
9fd133511c
removed arbfragparse.[ch] arbvertparse.[ch]
2005-11-19 15:37:00 +00:00
Brian Paul
8c41a14c5e
Remove the _mesa_parse_arb_vertex/fragment_program() functions into
...
arbprogparse.c and remove arbvertparse.[ch] and arbfragparse.[ch].
Clean up quite a bit of the arb parsing code.
Rewrite parser extension code to avoid a mess of string operations every
time the parser was used.
2005-11-19 15:36:28 +00:00
Brian Paul
5754809421
update comments, remove ^M chars
2005-11-19 14:57:47 +00:00
Brian Paul
8c765ad312
move a bunch of gl2/shading language structs from mtypes.h to shaderobjects.h
2005-11-19 14:49:25 +00:00
Aapo Tahkola
ddf61bfec9
Try to detect when native support to given texture width is not available.
2005-11-18 20:53:50 +00:00
Aapo Tahkola
f31448f3c8
Fix typo causing secondary color not to work properly.
2005-11-18 18:05:19 +00:00
Aapo Tahkola
40ca5b455f
Reduce stderr noise.
2005-11-18 17:57:27 +00:00
Brian Paul
311bcf5090
In _mesa_RenderbufferStorageEXT(), try to avoid needless reallocation.
...
Simplify _mesa_GetRenderbufferParameterivEXT() queries.
2005-11-18 02:24:14 +00:00
Brian Paul
948ab5d8a9
move _mesa_update_state() calls before error tests that depend on framebuffer completeness
2005-11-17 05:01:26 +00:00
Brian Paul
74e9a43a2a
optimize drawing GL_DEPTH_STENCIL pixels into a GL_DEPTH_STENCIL renderbuffer
2005-11-17 05:00:17 +00:00
Brian Paul
5ba41dfa81
s/MEMCPY/_mesa_memcpy/ and fix typo
2005-11-17 04:51:56 +00:00
Brian Paul
11f179e01b
optimize case of reading GL_DEPTH_STENCIL pixels from GL_DEPTH_STENCIL renderbuffer
2005-11-17 04:51:08 +00:00
Brian Paul
f81c78f87d
delete frame/renderbuffers upon exit, more error checking
2005-11-17 02:08:10 +00:00
Brian Paul
547113c16c
improved error checking in error_check_format_type()
2005-11-17 02:05:42 +00:00
Thomas Hellström
154cc16d08
Fixes for x86_64 Unichrome.
2005-11-16 19:24:00 +00:00
Thomas Hellström
0ba7be0a50
Bring in last minute 6_4 branch changes to the unichrome driver
...
to the trunk.
2005-11-16 17:24:26 +00:00
Brian Paul
32fe233d54
added -ds option to test GL_EXT_packed_depth_stencil with framebuffer objects
2005-11-16 14:48:11 +00:00
Brian Paul
0f29ef6092
additional comments about GL_DEPTH_STENCIL buffers
2005-11-16 04:17:20 +00:00
Brian Paul
94f70fab64
added depthstencil.[ch]
2005-11-16 04:12:08 +00:00
Brian Paul
1a5f1bdb42
Use new gl_framebuffer _Depth/_StencilBuffer fields instead of
...
Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers
around combined depth/stencil renderbuffers attached at the later points.
2005-11-16 04:09:26 +00:00
Brian Paul
909e8a7abb
added depthstencil.c
2005-11-16 04:06:32 +00:00
Brian Paul
847160466c
Support for combined depth/stencil renderbuffers (GL_EXT_packed_depth_stencil).
...
depthstencil.c provides wrappers for treating depth/stencil buffers either
as regular depth or stencil renderbuffers.
2005-11-16 04:05:54 +00:00
Brian Paul
06185363dd
added _mesa_new_depthstencil_renderbuffer() for combined depth/stencil buffers
2005-11-16 04:00:31 +00:00
Brian Paul
c731d6223c
Added error checking in _tnl_Begin to detect incomplete framebuffer.
...
Set new tnl->DiscardPrimitive field to true when such error is
detected to discard the glBegin/End primitive when flushing.
Added some new comments.
2005-11-16 02:47:16 +00:00
Brian Paul
0ad64faec7
change an assertion
2005-11-16 02:00:34 +00:00
Brian Paul
738f501f73
Replace GL_POLYGON+1 with PRIM_OUTSIDE_BEGIN_END
2005-11-16 01:58:19 +00:00
Brian Paul
62620d349b
add GL_INVALID_FRAMEBUFFER_OPERATION_EXT in _mesa_error()
2005-11-16 01:11:06 +00:00
Brian Paul
daeb0056df
fix color interpolation problem reported on VMS
2005-11-15 15:08:03 +00:00
Brian Paul
7edf68e081
check for ctx==NULL, bug 4087
2005-11-15 14:50:55 +00:00
Brian Paul
1e134cf7e4
Fix problem in stencil_and_ztest_span() when using h/w stencil buffer.
...
Fix a comment typo.
Remove some unneeded #includes.
2005-11-15 04:01:29 +00:00
Ian Romanick
5ef524cd01
Two subtle things missed on the previous commit.
2005-11-15 01:55:46 +00:00
Ian Romanick
a163256cc2
Add the ability for interleave to test passing invalid format enums
...
and invalid stride values (see bugzilla #5058 ).
2005-11-15 01:46:49 +00:00
Ian Romanick
e5700a1ba3
Simple test of glInterleavedArrays functionality.
2005-11-14 23:31:05 +00:00
Brian Paul
cb6b47b795
remove unneeded RasterPosValid check
2005-11-14 18:23:56 +00:00
Brian Paul
7b98b40e47
Improve _mesa_print_program().
...
Added make_state_string() to produce a string from a GL state vector.
2005-11-12 23:25:49 +00:00
Brian Paul
b3c095f074
fix comment for TexSrcTarget
2005-11-12 23:24:32 +00:00
Brian Paul
662fbf8a62
Added _mesa_light() helper function so we can avoid transforming then
...
un-transforming light positions and spot directions when popping light
state off the attribute stack.
2005-11-12 18:58:12 +00:00
Brian Paul
ba3da6154c
Added OSMesaColorClamp(), bug 4917
2005-11-12 18:44:29 +00:00
Brian Paul
e3636b4114
update an assertion
2005-11-12 17:59:05 +00:00
Brian Paul
bed8363aa6
update some assertions
2005-11-12 17:56:18 +00:00
Brian Paul
de99760bf3
Move stuff common to vertex/fragment_program into the base class, including:
...
Instructions, InputsRead, OutputsWritten, and Parameters.
Also, added debug functions: _mesa_print_instruction(),
_mesa_print_program_parameters() and revamp _mesa_print_program().
2005-11-12 17:53:14 +00:00
Brian Paul
77ee31930a
Make _mesa_is_proxy_texture() non-static and use in a few more places.
...
Use COPY_4FV() where possible.
Added some comments, clean-ups.
2005-11-11 15:33:36 +00:00
Ian Romanick
0325bc6359
Support for "fragment program to C" and TCC has been removed from the
...
source code, so there is no reason for this config to exist. This
fixes fdo bugzilla #5004 .
2005-11-10 16:25:37 +00:00
Brian Paul
418a7dbd75
s/MAX_LIGHTS/ctx->Const.MaxLights/ and spruce up some comments
2005-11-10 16:22:56 +00:00
Brian Paul
6297799fee
fix popping of GL_SPOT_DIRECTION (bug 5005)
2005-11-10 16:19:44 +00:00