summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Add texture usage information to surface_buffer_createJakob Bornecrantz2009-08-111-0/+2
| | | | | | We need aditional meta data about the usage of the surface in softpipe because we need to be able tell the diffrence between PRIMARY and DISPLAY_TARGET surfaces.
* gallium: Move minify() to u_math.Corbin Simpson2009-08-071-5/+0
| | | | | minify() is usually used in mipmap size calculation. Strangely enough, we all defined it as MAX2(1, d >> 1); imagine that. :3
* softpipe: Also defere primary textures to backendJakob Bornecrantz2009-08-051-1/+2
|
* softpipe: Mark texture dirty when unmapped.Chia-I Wu2009-07-301-6/+5
| | | | | | | | | | When a texutre transfer is mapped for writing, mark the texture dirty when unmapped. This was done in surface creation, and this commit moves it to happen in texture unmapping. This fixes subtex test in progs/tests/. Signed-off-by: Chia-I Wu <[email protected]>
* Merge branch 'mesa_7_5_branch'Brian Paul2009-07-171-12/+30
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile progs/glsl/multitex.c src/mesa/main/enums.c src/mesa/main/state.c src/mesa/main/texenvprogram.c src/mesa/main/version.h
| * softpipe: limit blend results to [0,1]Luca Barbieri2009-07-151-12/+30
| |
* | tgsi: initial texturing support on sse pathKeith Whitwell2009-07-161-0/+1
| | | | | | | | | | Most obvious problem is drawpixels comes out blocky, but this may be an existing issue of KIL on the sse path.
* | tgsi: reduce x86 reg usage in tgsi_sse generated programsKeith Whitwell2009-07-161-18/+5
| | | | | | | | | | | | Pass the tgsi_exec_machine struct in directly and just hold a single pointer to this struct, rather than keeping one for each of its internal members.
* | gallium: proper constructor and destructor for tgsi_exec_machineKeith Whitwell2009-07-161-13/+17
| | | | | | | | | | Centralize the creation, initialization and destruction of this struct. Use align_malloc instead of home-brew alternatives.
* | gallium: Define PIPE_CAP_BLEND_EQUATION_SEPARATE, remove extension from ↵Patrice Mandin2009-07-141-0/+2
| | | | | | | | default extension list
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-032-15/+13
|\| | | | | | | | | | | Conflicts: src/mesa/main/dlist.c src/mesa/vbo/vbo_save_api.c
| * gallium: fix the front face semanticsZack Rusin2009-07-012-15/+13
| | | | | | | | | | | | | | | | mesa allocates both frontface and pointcoord registers within the fog coordinate register, by using swizzling. to make it cleaner and easier for drivers we want each of them in its own register. so when doing compilation from the mesa IR to tgsi allocate new registers for both and add new semantics to the respective declarations.
* | drm/st: Remove drm_api struct from driversJakob Bornecrantz2009-07-012-5/+3
| | | | | | | | | | | | Remove the drm_api from the functions in the softpipe and i915simple drivers. Create wrapper functions in the backends instead.
* | drm/st: Return drm_api struct from a functionJakob Bornecrantz2009-06-302-3/+5
| |
* | softpipe: use shadow_compare4() to compare texcoord to four texture samplesBrian Paul2009-06-291-12/+78
| |
* | softpipe: pass sampler state to shadow_compare()Brian Paul2009-06-291-19/+17
| |
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-261-0/+2
|\| | | | | | | | | | | | | | | Conflicts: Makefile src/gallium/drivers/softpipe/sp_screen.c src/mesa/main/version.h
| * softpipe: PIPE_CAP_TGSI_CONT_SUPPORTED queryBrian Paul2009-06-261-0/+2
| |
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-241-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i915/i915_tex_layout.c src/mesa/drivers/dri/i965/brw_wm_glsl.c src/mesa/drivers/dri/intel/intel_buffer_objects.c src/mesa/drivers/dri/intel/intel_pixel_bitmap.c src/mesa/drivers/dri/intel/intel_pixel_draw.c src/mesa/main/enums.c src/mesa/main/texstate.c src/mesa/vbo/vbo_exec_array.c
| * softpipe: return alpha=1 in shadow_compare() functionBrian Paul2009-06-191-0/+2
| | | | | | | | | | | | | | The alpha value wasn't set at all before so we got unpredictable results. Note that we don't currently obey GL_DEPTH_TEXTURE_MODE in the state tracker. For now, we return the result in the default mode (r,r,r,1).
* | softpipe: use u_reduced_prim()Brian Paul2009-06-191-15/+2
| |
* | softpipe: whitespace, reformattingBrian Paul2009-06-191-8/+5
| |
* | Merge branch 'ext-provoking-vertex'Brian Paul2009-06-192-66/+168
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html progs/tests/Makefile src/gallium/drivers/softpipe/sp_prim_vbuf.c src/glx/x11/indirect.c src/mesa/glapi/Makefile src/mesa/glapi/dispatch.h src/mesa/glapi/glapioffsets.h src/mesa/glapi/glapitable.h src/mesa/glapi/glapitemp.h src/mesa/glapi/glprocs.h src/mesa/main/dlist.c src/mesa/main/enums.c src/mesa/sparc/glapi_sparc.S src/mesa/x86-64/glapi_x86-64.S src/mesa/x86/glapi_x86.S
| * | softpipe: implement flatshade_first for trianglesBrian Paul2009-06-091-58/+182
| | |
| * | softpipe: implement flatshade_first for line setupBrian Paul2009-06-091-1/+4
| | |
| * | Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"Brian Paul2009-06-033-6/+1
| | | | | | | | | | | | This reverts commit 5d75124db480b37977c353511b4e228905b7cc95.
* | | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-165-3/+28
|\ \ \ | | |/ | |/| | | | | | | | | | Conflicts: src/mesa/main/api_validate.c
| * | softpipe: fix out of bounds quad rasterization bugBrian Paul2009-06-161-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | For some triangles we can generate quads which lie just outside the surface bounds. Just check the quad's mask before trying to emit/process the quad. Fixes failed assertion in Lightsmark.
| * | softpipe: Fix softpipe_is_texture_referenced.José Fonseca2009-06-154-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Render results are only visible when the render cache is flushed. softpipe_is_texture_referenced must reflect that or transfers to/from the textures bound in the framebuffer won't be proceeded of the necessary flush, causing transfer data to be outdated/clobbered. This fixes conform drawpix test with softpipe.
| * | softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()Brian Paul2009-06-041-2/+12
| | | | | | | | | | | | | | | | | | | | | Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN. This is a follow-on to commit a59575d8fbe8b0ca053cc8366ce7a42bc660158a. (cherry picked from commit 086ecea179ed572c89aa77c5f465671a5cef87a7)
| * | softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON renderingBrian Paul2009-06-041-1/+1
| | | | | | | | | | | | | | | | | | This fixes incorrect front/back-face orientation. (cherry picked from commit a64bbdaa3e0b036a880d6db65ceb4a66205062f1)
* | | softpipe: advertise PIPE_CAP_MAX_TEXTURE_ANISOTROPY as 16.0Brian Paul2009-06-081-1/+1
| | | | | | | | | | | | | | | Note that this doesn't have any real significance since PIPE_CAP_ANISOTROPIC_FILTER still returns 0.
* | | softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()Brian Paul2009-06-031-2/+12
| | | | | | | | | | | | | | | Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN. This is a follow-on to commit a59575d8fbe8b0ca053cc8366ce7a42bc660158a.
* | | softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON renderingBrian Paul2009-06-031-1/+1
| | | | | | | | | | | | This fixes incorrect front/back-face orientation.
* | | Merge branch 'mesa_7_5_branch'Brian Paul2009-05-301-1/+15
|\| |
| * | softpipe: fix incorrect provoking vertex color for PIPE_PRIM_POLYGONBrian Paul2009-05-301-1/+15
| | | | | | | | | | | | | | | | | | | | | This fixes the incorrect colors seen when rendering flat-shaded polygons. Note that clipped polygons were correct, but unclipped polygons were wrong. See the glean/clipFlat test for regression testing.
* | | Revert "softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGON"Brian Paul2009-05-303-6/+1
| | | | | | | | | | | | | | | | | | | | | This reverts commit 5d75124db480b37977c353511b4e228905b7cc95. This fixed unclipped polygons, but broke clipped polygons. A better fix from the mesa 7.5 branch will be merged next...
* | | softpipe: update comments for max texture sizeBrian Paul2009-05-291-2/+2
| | |
* | | softpipe: increase max 2D/cube texture size to 4K x 4KBrian Paul2009-05-291-2/+2
| |/ |/|
* | softpipe: commentsBrian Paul2009-05-271-0/+2
| |
* | softpipe: include sp_winsys.h to silence warning (unprototyped function)Brian Paul2009-05-271-0/+1
| |
* | softpipe: fix flat shading provoking vertex for PIPE_PRIM_POLYGONBrian Paul2009-05-273-1/+6
| | | | | | | | Use the first vertex, not the last.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-05-181-0/+5
|\| | | | | | | | | | | | | Conflicts: Makefile src/mesa/main/version.h
| * softpipe: add texture target sanity check assertionBrian Paul2009-05-181-0/+5
| |
* | gallium: remove occlusion_count flag from depth-stencil stateKeith Whitwell2009-05-163-1/+7
|/ | | | | | | | | Drivers can just keep track of whether they are within a query by monitoring the begin/end query callbacks. The flag adds no information beyond that. Only softpipe was examining this flag -- it has been fixed up and retested with demos/arbocclude.
* softpipe: return PIPE_UNREFERENCED in softpipe_is_buffer/texture_referenced()Brian Paul2009-04-281-2/+2
| | | | | This allows the engine demo to run again (avoid crash in VBO code). This stuff still needs to be revisited someday though...
* gallium/intel/gem: Use softpipe rather than i915simple if INTEL_SOFTPIPE is set.Michel Dänzer2009-04-232-0/+25
|
* softpipe: fix softpipe_is_buffer/texture_referenced() regressionBrian Paul2009-04-201-2/+2
| | | | | | | Return the conservative PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE value for now. This fixes a bunch of regressions seen in piglit and glean.
* softpipe: Simplify softpipe_create's prototype.José Fonseca2009-04-182-7/+3
|
* softpipe: Fix softpipe_is_texture_referenced prototype.José Fonseca2009-04-181-2/+1
|