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
Brian Paul
bdd80bf819
remove _mesa_debug_fp_inst()
2005-11-08 14:52:51 +00:00
Brian Paul
0bffb1192a
some initial work on upcoming GL_EXT_framebuffer_blit extension
2005-11-08 14:45:48 +00:00
Brian Paul
3e9c099088
remove a bunch of extension stuff that's in glxext.h
2005-11-08 14:44:07 +00:00
Brian Paul
02df9e1ed4
minor work in _mesa_print_program()
2005-11-08 14:42:52 +00:00
Brian Paul
832026f906
remove unneeded #includes
2005-11-08 14:41:41 +00:00
Brian Paul
beff21e7bf
remove unneeded #includes
2005-11-07 17:36:34 +00:00
Brian Paul
189bbe0b8c
s/_mesa_debug_fp_inst/_mesa_print_program/
2005-11-07 16:03:46 +00:00
Brian Paul
c657d8e3e4
s/_mesa_debug_vp_inst/_mesa_print_program/
2005-11-05 20:18:51 +00:00
Brian Paul
30d6a4bffa
consolidate vertex/fragment program printing into _mesa_print_program()
2005-11-05 20:18:18 +00:00
Brian Paul
237dae74f7
use _mesa_program_file_string() and _mesa_opcode_string()
2005-11-05 19:33:13 +00:00
Brian Paul
bf41bc03c2
added _mesa_program_file_string()
2005-11-05 19:32:36 +00:00
Brian Paul
b7c87974b3
Use _mesa_opcode_string()
2005-11-05 19:24:08 +00:00
Brian Paul
c289f48342
use _mesa_num_inst_src_regs() and _mesa_opcode_string()
2005-11-05 19:16:19 +00:00
Brian Paul
b88fb724e6
use _mesa_num_inst_src_regs() instead of nr_args()
2005-11-05 19:15:27 +00:00
Brian Paul
1fcdaf1c3b
added _mesa_num_inst_src_regs() and _mesa_opcode_string()
2005-11-05 19:12:36 +00:00
Brian Paul
637c375ee2
s/Negate/NegateBase/
2005-11-05 17:23:45 +00:00
Brian Paul
9ba4ef3102
s/TexSrcIdx/TexSrcTarget/
2005-11-05 17:18:09 +00:00
Brian Paul
7e807510d8
Unify vertex/fragment program instuctions.
...
Based on patch by Ian (#4967 ) but also unify instruction opcodes.
2005-11-05 17:10:45 +00:00
Brian Paul
73347516be
remove unneeded #includes
2005-11-05 17:08:50 +00:00
Brian Paul
41c8b71871
remove unneeded #include
2005-11-05 17:07:00 +00:00
Aapo Tahkola
47adbde5e5
Fix broken build.
2005-11-05 14:49:26 +00:00
Brian Paul
8894a55d5f
added MESA_GLX_ALPHA_BITS env var
2005-11-05 03:12:06 +00:00
Brian Paul
fd4395b8d1
don't need MAKE_SWIZZLE() macro
2005-11-05 03:02:28 +00:00
Brian Paul
613e1ad5d5
Replace parameter_type enum in program.[ch], use register_file enums instead.
2005-11-05 02:15:21 +00:00
Brian Paul
4d0b7618cb
minor improvements in _mesa_init_teximage_fields()
2005-11-05 02:12:44 +00:00
Brian Paul
95ebb5f485
use VERT_RESULT_HPOS, VERT_BIT_POS tokens
2005-11-04 16:52:41 +00:00
Brian Paul
2cb1cf484a
better ffs() function (bug 4956)
2005-11-04 16:47:22 +00:00
Brian Paul
8ff68b2bf3
just pass ctx to do_ndc_cliptest() rather than stuffing it in the arb_vp_machine struct
2005-11-04 16:43:28 +00:00
Brian Paul
c12ee99d11
MESA_GLX_ALPHA_BITS env var to force visual with alpha channel
2005-11-04 16:41:06 +00:00
Brian Paul
f805cdfedf
remove unneeded HIDDEN definition (bug 4956)
2005-11-04 00:58:17 +00:00
Brian Paul
84f3ff91d9
fix MinGW problems (bug 4956)
2005-11-04 00:52:08 +00:00
Adam Jackson
d78834b306
s/dri.sourceforge.net/dri.freedesktop.org/
2005-11-03 20:49:07 +00:00
Brian Paul
72030e0d91
Streamline code generation by using a fixed size instruction buffer in
...
arb_program struct.
2005-11-03 03:30:34 +00:00