aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/swrast.h
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Remove unnecessary parameters from AllocTextureImageBufferPauli Nieminen2012-08-121-5/+2
| | | | | | | | | | Size and format information is always stored in gl_texture_image structure. That makes it preferable to remove duplicate information from parameters to make interface easier to understand. Signed-off-by: Pauli Nieminen <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* mesa: move more swrast-related #defines out of core MesaBrian Paul2012-02-241-0/+20
|
* swrast: define, use SWRAST_MAX_WIDTH/HEIGHTBrian Paul2012-02-241-0/+8
| | | | We'll get rid of MAX_WIDTH, MAX_HEIGHT soon.
* i915: Initialize swrast_texture_image structure fields.Paul Berry2012-02-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Commit 980f6f1 (mesa: move gl_texture_image::Width/Height/DepthScale fields to swrast) moved the initialization of the Width, Height, and DepthScale fields to _swrast_alloc_texture_image_buffer(). However, i915 doesn't call this function because it performs its own buffer allocation. As a result, the Width, Height, and DepthScale fields weren't getting initialized properly, and some operations requiring swrast would fail. This patch ensures that Width, Height, and DepthScale are properly initialized by separating the code that sets them into a new function, _swrast_init_texture_image(), which is called by intel_alloc_texture_image_buffer() as well as _swrast_alloc_texture_image_buffer(). It also moves the initialization of _IsPowerOfTwo into this function. Fixes piglit test fbo/fbo-cubemap on i915. Partially fixes https://bugs.freedesktop.org/show_bug.cgi?id=41216 This is a candidate for the 8.0 branch. Reviewed-and-tested-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* swrast: Use the fast copypixels code to implement fast glBlitFramebuffer().Eric Anholt2012-01-061-0/+5
| | | | | | | | They were meaning to do the same thing of memcpying rows, so just write the code once. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* mesa: remove dead swrast and state tracker accum buffer codeBrian Paul2011-12-081-3/+0
|
* mesa: remove _swrast_ReadPixels()Brian Paul2011-11-151-7/+0
| | | | | | We use the code in main/readpix.c now. Acked-by: Eric Anholt <[email protected]>
* swrast: implement GL_ARB_texture_storageBrian Paul2011-10-311-0/+7
|
* mesa: move last bits of GLchan stuff into swrastBrian Paul2011-09-201-0/+1
| | | | | This removes the last remnants of the GLchan datatype and associated macros out of core Mesa and into swrast.
* swrast: add Alloc/FreeTextureImageBuffer() driver functionsBrian Paul2011-09-171-0/+10
| | | | | Not called yet. These will replace the core Mesa functions for allocating and freeing malloc'd texture memory.
* swrast: introduce new swrast_texture_image structBrian Paul2011-09-171-0/+7
| | | | | No subclass fields yet. Subsequent patches will add the fields related to software rendering that are currently in gl_texture_image.
* swrast: Add implementation of MapTextureImage/UnmapTextureImage.Brian Paul2011-08-291-0/+14
| | | | Reviewed-by: Brian Paul <[email protected]>
* mesa: move texrender.c to swrastBrian Paul2011-06-131-0/+10
| | | | | | | This stuff is really for software rendering, it's not core Mesa. A small step toward pushing the FetchTexel() stuff down into swrast. Reviewed-by: Eric Anholt <[email protected]>
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-27/+27
|
* mesa/main: Add more OpenGL ES types to glheader.h.Chia-I Wu2009-11-051-6/+0
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* swrast: remove prototypes for obsolete functionsBrian Paul2009-09-191-21/+0
|
* swrast: remove prototypes for obsolete functionsBrian Paul2009-09-191-33/+0
|
* mesa: remove GL_MESA_program_debug extensionBrian Paul2009-03-071-6/+0
| | | | This was never fully fleshed out and hasn't been used.
* mesa: move GLfixed type and related macros to swrast moduleBrian Paul2009-02-281-0/+6
| | | | Fixed point is only used in swrast and sw-based drivers.
* fix broken two-sided stencilBrian2007-11-301-0/+7
|
* Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian2007-07-041-1/+1
| | | | of -I flags.
* Overhaul/simplify SWvertex and SWspan attribute handling.Brian2007-05-201-10/+13
| | | | | Instead of separate fog/specular/texcoord/varying code, just treat all of them as generic attributes. Simplifies the point/line/triangle functions.
* remove SWvertex->fog field, use attrib fieldBrian2007-04-231-1/+0
|
* Merge SWvertex texcoord and varying fields into attrib[] array field.Brian2007-02-051-2/+1
| | | | | Fragment texcoords and varying code is now unified in the point/line/triangle rasterization code. In the future, merge color, fog, etc. attribs.
* s/attribute/varying/Brian2006-12-211-1/+1
|
* Remove x/y/width/height parameters from Clear functions.Brian Paul2006-11-011-2/+1
|
* Don't pass x/y/width/height to ctx->Driver.Accum().Brian Paul2006-10-181-3/+1
| | | | | Compute the region after we've locked (and possibly updated the buffer's size). Same thing is needed for ctx->Driver.Clear().
* Move the fp_machine struct into s_nvfragmprog.c since (except for programBrian Paul2006-10-101-0/+7
| | | | debug) it's only used there.
* More GLSL code:Michal Krol2006-04-111-1/+2
| | | | | | | | | | | | - use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
* merge from texman branchmesa_20060325Brian Paul2006-03-261-0/+4
|
* implementation of _swrast_BlitFramebuffer()Brian Paul2006-03-021-4/+4
|
* _swrast_blit_framebuffer() functionBrian Paul2006-03-011-0/+6
|
* more GLuint->GLbitfield changesBrian Paul2005-09-161-1/+1
|
* updated commentsBrian Paul2005-09-151-11/+9
|
* Remove last remnants of pre-renderbuffer code.Brian Paul2005-09-031-29/+1
|
* improve comments about win[0..3] values (bug 2554)Brian Paul2005-07-261-2/+5
|
* Remove NEW_RENDERBUFFER stuff.Brian Paul2005-07-011-1/+1
| | | | | Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
* remove old span functions from swrast_device_driver structBrian Paul2005-06-041-176/+1
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-42/+45
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Removed _swrast_validate_pbo_access().Brian Paul2004-10-311-5/+0
| | | | In x11 driver, map/unmap PBO as needed in DrawPixels functions.
* added support for GL_ARB_draw_buffersBrian Paul2004-10-021-1/+5
|
* patches for clearing hw depth buffers from software fallback (Nicolai Haehnle)Brian Paul2004-09-241-0/+7
|
* Implemented support for software-based AUX color buffers.Brian Paul2004-03-211-8/+8
| | | | | | Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
* Implementation of GL_EXT_pixel_buffer_object extension.Brian Paul2004-03-131-1/+5
| | | | | Note: extension may not be finalized yet - subject to change! Note: implementation not fully suitable for h/w implementation yet.
* Fix color index mode rendering.Brian Paul2004-03-091-3/+3
| | | | Changed SWvertex's index field to GLfloat and fix a few other bits.
* changed a commentBrian Paul2003-09-171-2/+1
|
* Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.Ian Romanick2003-06-051-1/+0
|
* Move span stuff from swrast.h to s_context.h (it's private).Brian Paul2003-02-231-151/+3
| | | | | Implemented remaining fragment program instructions. Initial changes to implement fragment program texture sampling.
* First batch of code for GL_NV_fragment_program.Brian Paul2003-01-141-8/+8
| | | | | Re-org of some GL_NV_vertex_program code. Replace MAX_TEXTURE_UNITS with MAX_TEXTURE_COORD_UNITS and MAX_TEXTURE_IMAGE_UNITS.
* added comments about NULL mask parameter to span-write functionsBrian Paul2002-11-131-2/+8
|