summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2005-12-06C++ fixes, mostly casts (Stephane Conversy)Brian Paul
2005-12-02fix _mesa_ffs() return, test for more platforms (Evgeny Kotsuba)Brian Paul
2005-12-01remove uintptr_t castBrian Paul
2005-12-01try removing need for the uintptr_t castsBrian Paul
2005-12-01Added FinishRenderTexture() device driver function to indicate whenBrian Paul
rendering to a texture has likely completed. Fixed refcount issue in texture renderbuffer wrapper.
2005-12-01added comment about glTexImage and renderbuffersBrian Paul
2005-11-30fxt1_decode_1() should not be staticBrian Paul
2005-11-28Remove the many aliases for 'struct mem_block' in mm.hKeith Whitwell
2005-11-28Correct author attribution of mm.hKeith Whitwell
2005-11-27include stdint.h for BSDBrian Paul
2005-11-25use ADD_POINTERS macro instead of (uintptr_t) castBrian Paul
2005-11-20Make Saturate a 2-bit field again, renamed to SaturateMode with threeBrian Paul
possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.
2005-11-19additional clean-ups and improvementsBrian Paul
2005-11-19Bunch of little fixes:Brian Paul
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-19No longer derive 'ati_fragment_shader' from 'program' class. Only theBrian Paul
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-19Remove the _mesa_parse_arb_vertex/fragment_program() functions intoBrian Paul
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-19move a bunch of gl2/shading language structs from mtypes.h to shaderobjects.hBrian Paul
2005-11-18Reduce stderr noise.Aapo Tahkola
2005-11-18In _mesa_RenderbufferStorageEXT(), try to avoid needless reallocation.Brian Paul
Simplify _mesa_GetRenderbufferParameterivEXT() queries.
2005-11-17move _mesa_update_state() calls before error tests that depend on ↵Brian Paul
framebuffer completeness
2005-11-17improved error checking in error_check_format_type()Brian Paul
2005-11-16additional comments about GL_DEPTH_STENCIL buffersBrian Paul
2005-11-16Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul
Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
2005-11-16added depthstencil.cBrian Paul
2005-11-16Support for combined depth/stencil renderbuffers (GL_EXT_packed_depth_stencil).Brian Paul
depthstencil.c provides wrappers for treating depth/stencil buffers either as regular depth or stencil renderbuffers.
2005-11-16added _mesa_new_depthstencil_renderbuffer() for combined depth/stencil buffersBrian Paul
2005-11-16add GL_INVALID_FRAMEBUFFER_OPERATION_EXT in _mesa_error()Brian Paul
2005-11-15check for ctx==NULL, bug 4087Brian Paul
2005-11-12Added _mesa_light() helper function so we can avoid transforming thenBrian Paul
un-transforming light positions and spot directions when popping light state off the attribute stack.
2005-11-12Added OSMesaColorClamp(), bug 4917Brian Paul
2005-11-12Move stuff common to vertex/fragment_program into the base class, including:Brian Paul
Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program().
2005-11-11Make _mesa_is_proxy_texture() non-static and use in a few more places.Brian Paul
Use COPY_4FV() where possible. Added some comments, clean-ups.
2005-11-10s/MAX_LIGHTS/ctx->Const.MaxLights/ and spruce up some commentsBrian Paul
2005-11-10fix popping of GL_SPOT_DIRECTION (bug 5005)Brian Paul
2005-11-10Move code to enable FP exceptions into debug.c (set MESA_DEBUG=fpexceptions).Brian Paul
Get rid of MESA_DEBUG preprocessor symbol, just use DEBUG instead.
2005-11-09fix popping of GL_EYE_PLANE state (bug 4996)Brian Paul
2005-11-09Bug 4996.Brian Paul
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-09Move COPY_FLOAT() macro down into glide driver.Brian Paul
Rewrite COPY_4FV() macro to not use COPY_FLOAT(), and use integer moves as originally intended.
2005-11-08At keithw's request, remove all traces of the "fragment program to C" andIan Romanick
TCC experiment.
2005-11-08s/_mesa_debug_fp_inst/_mesa_print_program/Brian Paul
2005-11-08some initial work on upcoming GL_EXT_framebuffer_blit extensionBrian Paul
2005-11-05Unify vertex/fragment program instuctions.Brian Paul
Based on patch by Ian (#4967) but also unify instruction opcodes.
2005-11-05remove unneeded #includesBrian Paul
2005-11-05Replace parameter_type enum in program.[ch], use register_file enums instead.Brian Paul
2005-11-05minor improvements in _mesa_init_teximage_fields()Brian Paul
2005-11-04better ffs() function (bug 4956)Brian Paul
2005-11-04fix MinGW problems (bug 4956)Brian Paul
2005-11-02Rename FRAG_OUTPUT_* tokens to FRAG_RESULT_* to match vertex program conventionBrian Paul
2005-11-01Several fp and vp tweaks:Keith Whitwell
- Renumber VERT_RESULT_* values so that they match the numbers of the corresponding FRAG_ATTRIB_ values. - Add ctx->VertexProgram._Current and FragmentProgram._Current values which point to either the current client-supplied program if enabled, or otherwise to the current mesa-internal program. Thus this program is always the correct one for the current state, providing that the mesa flags to turn on automatic generation are enabled. - Add callbacks to ctx->Driver.BindProgram() in texenvprogram.c and t_vp_build.c so that the driver knows when the generated program changes. This is cleaner than trying to code all the possible _NEW_* flags into the driver, and more precise as well. - Add a UsesKill flag to identify fragment programs with that instruction, as these can require special treatment. - Move the FRAG_OUTPUT values to mtypes.h, near to similar defn's.
2005-11-01Re-org and clean-up of vertx/fragment program limits (instructions,Brian Paul
temporaries, parameters, etc). glGetProgramivARB() now returns all the right things. Updated i915 and r300 code to initialize program native limits and current program's native instruction/temporary/etc counts.