summaryrefslogtreecommitdiff
path: root/src/mesa/main
AgeCommit message (Collapse)Author
2007-10-31Update texenvprogram.c code to use prog_cache.c routines.Brian
2007-10-31more flags for MaintainTnlProgram case, update #includesBrian
2007-10-31Use ffvertex_prog.c code instead of t_vp_build.c code.Brian
2007-10-31Lift fixed function vertex program generation up from tnl module.Brian
2007-10-31alloc caches for fixed-func vertex/fragment progsBrian
2007-10-30Set _NEW_BUFFERS in glRead/DrawBuffer().Brian
Previously, we set _NEW_PIXEL and _NEW_COLOR in these functions, respectively. That correponds to the GL attribute groups, but doesn't make much sense otherwise. This could improve validation efficiency in a few places too. It looks like all the drivers are already checking for _NEW_BUFFERS in the right places (since that's the bit for FBO state) so we can trim out _NEW_PIXEL and _NEW_COLOR at any time.
2007-10-29Rewrite update_program() to use _mesa_get_fixed_func_fragment/vertex_program().Brian
2007-10-29Remove ctx field from texenvprog_cacheBrian
2007-10-29Refactor _mesa_UpdateTexEnvProgram()Brian
Will be replaced by _mesa_get_fixed_func_fragment_program().
2007-10-29Rename 'mms-config.' to 'mms.config'.Michal Krol
It looks like Windows does not like filenames ending with a dot, in effect renaming it to 'mms-config'.
2007-10-29Disable the else clause which assigns the default fragment program to ↵Brian
ctx->FragmentProgram._Current The _Current field should either point to the fragment program which is to be run (GLSL, ARB_f_p, fixed-func-generated, etc) or be NULL if conventional fixed-function code is to be used. Matches TNL program code.
2007-10-26Re-implement GLSL texture sampler variables.Brian
GLSL sampler variables indicate which texture unit to use for TEX instructions. Previously, this was baked into the fragment/vertex program and couldn't be readily changed once set. Now, SamplerUnits[] array indicates which texture unit is to be used for each sampler variable. These values are set with glUniform1i(). This is extra state that must be passed to the fragment/vertex program executor at runtime.
2007-10-23properly init dst reg's CondMask/Swizzle fieldsBrian
2007-10-23bump up MAX_INSTRUCTIONS and add an assertion to catch emitting too many ↵Brian
instructions
2007-10-19call Driver.Flush() in _mesa_notifySwapBuffers()Brian
2007-10-17Add some FLUSH_CURRENT() calls.Brian
Without these we can find ourselves in _mesa_load_state_parameters() computing derived lighting/material values whhen the current material properties haven't been updated from the VBO. This may be a somewhat wide-spread problem that needs more attention...
2007-10-15check for width or height = 0 before calling driver Bitmap funcBrian
2007-10-02Generate a texenv fragment program if there's a GLSL vertex shader but no ↵Brian
GLSL fragment shader. This allows Glean glsl1 test to get pretty far.
2007-09-26don't use scissored bounds in _mesa_clip_copytexsubimage()Brian
2007-09-26Added new _mesa_clip_copytexsubimage() function to do avoid clipping down in ↵Brian
the drivers. This should probably be pulled into main-line Mesa...
2007-09-25include programopt.hBrian
2007-09-25Disable vertex shader fog, compute fog in fragment shader.Brian
2007-09-18temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabledBrian
2007-09-11Implement query object interface.Brian
This replaces the temporary occlusion counter functions we had before. Added new ctx->Driver.WaitQuery() function which should block until the result is ready. Sketch out some code for vertex transformation feedback counters.
2007-09-10move FLUSH_CURRENTBrian
2007-09-06Move guts of glRasterPos down into T&L module.Brian
2007-08-20don't map element buffer in _mesa_validate_DrawElements() unless necessaryBrian
2007-08-11remove some temp pipe hacksBrian
2007-08-10remove some temporary hacksBrian
2007-08-10Add printf handlers, pass pci id and move texlayout code to driver.Keith Whitwell
2007-08-09Checkpoint intel_renderbuffer removal.Brian
Remove surface ptr from gl_renderbuffer. Use st_renderbuffer in most places. More clean-up.
2007-08-02remove st_draw.h includeBrian
2007-08-02Reroute some clear functionality.Keith Whitwell
Still require the intelClear() call to flush batchbuffers. That will be removed later...
2007-08-01s/Z24_S8/S8_Z24/ (stencil is in the high byte)Brian
2007-08-01Checkpoint: glClear changes - working, bug very rough.Brian
2007-07-31sp_z_surface.h is deadBrian
2007-07-31Redesign pipe_surface in terms of pipe_region.Brian
struct pipe_buffer goes away. Added basic region functions to softpipe to allocate/release malloc'd regions. Surface-related code is fairly coherent now.
2007-07-3032 and z24s8 softpipe buffersBrian
2007-07-30Lots of improvements to the surface-related code.Brian
Z testing now works with i915 driver. Add gl_renderbuffer::surface pointer (and reverse pointer). Remove intel_surface and xmesa_surface types - no longer used.
2007-07-27Merge branch 'master' of git+ssh://michal@git.freedesktop.org/git/mesa/mesa ↵michal
into softpipe_0_1_branch
2007-07-24remove unused MAX_3D_TEXTURE_SIZE, reformatttingBrian
2007-07-21Fix a number of MINGW32 issuesZhang
2007-07-21Remove ctx->Point._Size and ctx->Line._Width.Brian
The clamping for these values depends on whether we're drawing AA or non-AA points, lines. Defer clamping until drawing time. Drivers could compute and keep clamped AA and clamped non-AA values if desired.
2007-07-20fix bogus recently introduced function param commentsRoland Scheidegger
2007-07-19fix mesa's handling of fbo's / window fb (again)Roland Scheidegger
Make sure the relevant fields in window fbs get updated at appropriate time (those are NOT the same as fbos!!!), and fix up related code accordingly. This is a bit ugly, but there's a reason the issues section in EXT_fbo is a couple hundred pages long... Hopefully correct now.
2007-07-19more fixes for mesa's fbo handling (fixes tests/fbotest1/2)Roland Scheidegger
2007-07-19fix up mesa's probably bogus framebuffer updates with different read/write fbsRoland Scheidegger
Conflicts: src/mesa/main/framebuffer.c
2007-07-19fix mesa fb bindingRoland Scheidegger
Make sure that we bind the right buffer (draw or read) when rebinding the window framebuffer (the api doesn't allow binding different draw and read buffers at the same time, but the default window framebuffer is basically 2 fb objects, one for read, one for write, which can be different). Pass both of these two down the driver api (no driver uses this right now).
2007-07-17Merge branch 'origin' into softpipe_0_1_branchKeith Whitwell
2007-07-16fix bogus fb/drawable informationRoland Scheidegger
the framebuffer objects attached to drawables can have invalidate state associated with them, since for the window framebuffer this is per-context state and not per-fbo state. Since drivers rely on that information (otherwise would need to check if currently the window-framebuffer is bound in a lot of places) fix it up in _mesa_make_current (ugly). (Brought over from i915tex_privbuffers, where it fixes xdemos/wincopy when switching to front buffer rendering.)