Brian Paul
ec770b8c60
move _mesa_init_instruction() to program.c
2005-11-20 17:57:22 +00:00
Brian Paul
1a61462318
s/Saturate/SaturateMode/
2005-11-20 17:54:29 +00:00
Brian Paul
e31ac05223
Make Saturate a 2-bit field again, renamed to SaturateMode with three
...
possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.
2005-11-20 17:52:40 +00:00
Brian Paul
22db535776
additional clean-ups and improvements
2005-11-19 23:45:10 +00:00
Brian Paul
55194df035
remove incorrect cast
2005-11-19 23:29:18 +00:00
Brian Paul
1353ebed81
Saturate is a 1-bit boolean field
2005-11-19 23:28:55 +00:00
Brian Paul
5d7b49f7e7
Bunch of little fixes:
...
Fix mem leaks in _mesa_TexEnvProgramCacheDestroy().
Check if ctx->Driver.BindProgram is non-null before calling.
s/unsigned/GLuint/
Use MAX_INSTRUCTIONS instead of magic 100, check program length after it's made.
Use _mesa_init_instruction() instead of _mesa_memset().
2005-11-19 23:12:20 +00:00
Brian Paul
1ad3b7e28b
call gluDeleteQuadric() to fix mem leak
2005-11-19 23:09:14 +00:00
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