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
Brian Paul
db40ebfbb7
remove -DMESA_DEBUG
2005-11-10 05:10:49 +00:00
Brian Paul
1984aabe83
Move code to enable FP exceptions into debug.c (set MESA_DEBUG=fpexceptions).
...
Get rid of MESA_DEBUG preprocessor symbol, just use DEBUG instead.
2005-11-10 05:10:25 +00:00
Brian Paul
a8446f72f4
fix popping of GL_EYE_PLANE state (bug 4996)
2005-11-09 16:52:21 +00:00
Brian Paul
a8717180d9
Bug 4996.
...
Replace use of FLOAT_TO_USHORT with either CLAMPED_FLOAT_TO_USHORT or
UNCLAMPED_FLOAT_TO_USHORT. Same should be done for UBYTE, UINT, etc.
2005-11-09 16:30:50 +00:00
Brian Paul
cfca72cfb1
use UNCLAMPED_FLOAT_TO_USHORT/UBYTE in clear_rgba_buffer() (bug #4992 )
2005-11-09 01:17:33 +00:00
Brian Paul
8850a7e20f
Move COPY_FLOAT() macro down into glide driver.
...
Rewrite COPY_4FV() macro to not use COPY_FLOAT(), and use integer moves as
originally intended.
2005-11-09 00:56:51 +00:00
Ian Romanick
5374e4ba7e
At keithw's request, remove all traces of the "fragment program to C" and
...
TCC experiment.
2005-11-08 22:54:22 +00:00
Ian Romanick
4884db6eb2
This patch adds the missing NV_vertex_program2 and NV_vertex_program3
...
instructions to the various internal tables. It does not add support for
them to the parser nor does it add support for them to the program
interpreter.
It also corrects some errors in the comments in program_instruction.h.
This patch breaks the instruction union in t_vb_arbprogram.h. The opcode
field in that union was only 6 bits. When there were only 59+3 instructions
that worked fine. However, this patch increases the base instruction count
to 69. This requires 7 bits. The problem is that increasing the opcode
width to 7 bits increases the size of instruction::rsw to 33 bits. I've
increased the size of the union to 64-bit, but this is just a temporary hack
(and probably breaks the build on some systems).
2005-11-08 22:40:26 +00:00
Brian Paul
e1a5edf083
s/_mesa_debug_fp_inst/_mesa_print_program/
2005-11-08 14:53:24 +00:00