aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
...
* i915g: Remove stale function prototype.Stéphane Marchesin2011-09-211-6/+0
|
* svga: call u_default_redefine_user_buffer() to fix failed assertionBrian Paul2011-09-211-5/+2
| | | | | | | | | | | This fixes a regression from a8cf4b6acf9ee996090cc0bb95fa3558b481108c The problem occured when two successive glDrawArrays calls accessed subsequent elements in user-space arrays. The user-space array from the first call wasn't being grown to accomodate the second draw call's elements. Reviewed-by: Thomas Hellstrom <[email protected]>
* util: remove stray debug codeBrian Paul2011-09-211-2/+0
|
* gallivm: fix build with llvm 3.0svnBrian Paul2011-09-211-2/+8
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=41065
* st/vega: fix drawing images with alpha channelChia-I Wu2011-09-212-18/+22
| | | | | | | | | | Checking if the paints are opaque in renderer_validate_blend() does not work. We could be drawing images. Remove the check from renderer_validate_blend() and take image drawing into consideration in blend_use_shader(). The bug was introduced by 3f0a966807f03a364edea0272ddf45f08ab7ce4f, which affects the lookup demo.
* st/vega: fix vg_context_is_object_valid()Chia-I Wu2011-09-217-25/+21
| | | | | | | | | | vg_context_is_object_valid() checks if a handle is valid by checking if the handle is a valid key of the object hash table. However, the keys of the object hash table were object pointers. Fix vg_context_add_object() to use the handles as the keys so that vg_context_is_object_valid() works. This bug was introduced by 99c67f27d35a4bbbbefada8117d5972c7583cf42.
* llvmpipe: silence a pointer type warningBrian Paul2011-09-201-1/+1
|
* gallium/util: observe sampler view's first_level in util_blit_pixels_tex()Brian Paul2011-09-201-6/+10
| | | | This lets us blit from a non-zero source level.
* mesa/gallium: remove GLchan from latc, rgtc codeBrian Paul2011-09-202-15/+15
|
* gallium: remove trailing comma to silence warningBrian Paul2011-09-201-1/+1
|
* Gallium: Increase PIPE_MAX_CLIP_PLANES to 8.Paul Berry2011-09-201-1/+1
| | | | | | | | Since Mesa is now capable of supporting up to 8 clipping planes instead of 6, this patch updates Gallium internals to support 8 clipping planes as well. Reviewed-by: Brian Paul <[email protected]>
* Gallium: remove unnecessary ifdef for MAX_CLIPPED_VERTICES.Paul Berry2011-09-201-2/+0
| | | | | | | | | | | draw_pipe_clip.c contained an ifdef to ensure that its local definition of MAX_CLIPPED_VERTICES would not take effect if the global MAX_CLIPPED_VERTICES (defined in src/mesa/main/config.h) was already defined. This was unnecessary because draw_pipe_clip.c doesn't directly or indirectly include src/mesa/main/config.h. Removed the ifdef to reduce confusion. Reviewed-by: Brian Paul <[email protected]>
* scons: MacOSX build fixes.José Fonseca2011-09-201-4/+6
|
* st/egl: add support for null platformChia-I Wu2011-09-205-2/+216
| | | | | The backend calls null_sw_create() to create sw_winsys. And that is pretty much it...
* Update llvmpipe's gitignoreNicholas Miell2011-09-191-0/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* graw: fix tests to build on msvc again.Dave Airlie2011-09-1910-10/+10
| | | | | | Should fix https://bugs.freedesktop.org/show_bug.cgi?id=40997 Signed-off-by: Dave Airlie <[email protected]>
* r300/compiler: Fix regalloc for values with multiple writersTom Stellard2011-09-181-3/+6
| | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=40062 https://bugs.freedesktop.org/show_bug.cgi?id=36939 Note: This is a candidate for the 7.11 branch.
* gallium: move clear paths from rgba to a pointer to a color union (v2)Dave Airlie2011-09-1856-198/+245
| | | | | | | | | | | | | | | This moves the gallium interface for clears from using a pointer to 4 floats to a pointer to a union of float/unsigned/int values. Notes: 1. the value is opaque. 2. only when the value is used should it be interpretered according to the surface format it is going to be used with. 3. float clears on integer buffers and vice-versa are undefined. v2: fixed up vega and graw, dropped hunks that shouldn't have been in patch. Signed-off-by: Dave Airlie <[email protected]>
* d3d1x: fix parsing of SM4 relative addressing register opChristoph Bumiller2011-09-171-1/+1
|
* d3d1x: set flatshade_first in rasterizer stateChristoph Bumiller2011-09-172-0/+2
| | | | D3D10 specifies the first vertex as the leading/provoking one.
* d3d1x: initialize point size and line width to 1Christoph Bumiller2011-09-172-0/+4
| | | | | | Otherwise lines would never be visible since the width cannot be specified in D3D10. Wireframe mode is also affected by line width.
* r300/compiler: Add support for the output modifier (OMOD)Tom Stellard2011-09-1616-25/+310
|
* r300/compiler: Move some helper functions to radeon_compiler_util.cTom Stellard2011-09-163-33/+68
|
* r300/compiler: Don't unroll loops that conditionally increment the counterTom Stellard2011-09-161-2/+14
|
* nouveau: Fix typos of ParseSourceList in SConscript files.Vinson Lee2011-09-164-4/+4
| | | | Reviewed-by: Chia-I Wu <[email protected]>
* winsys/radeon: use the cache bufmgr for buffers with PIPE_BIND_CUSTOMMarek Olšák2011-09-162-2/+2
| | | | so that we don't abuse PIPE_BIND_VERTEX_BUFFER all the time.
* softpipe: use pipe_get_tile_rgba_format()Brian Paul2011-09-161-5/+6
| | | | | | | | | | | Pass an explicit surface format as we do with pipe_put_tile_rgba_format(). This fixes the piglit fbo-srgb-blit test. With GL_EXT_framebuffer_sRGB we override the resource's format with an explicit format (linear vs. sRGB). We need to do so both when getting and putting tiles. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40402 Reviewed-by: Dave Airlie <[email protected]>
* softpipe: use util_format_is_depth_or_stencil()Brian Paul2011-09-161-7/+1
| | | | Reviewed-by: Dave Airlie <[email protected]>
* r600g: fixup missing scaled r600 types.Dave Airlie2011-09-161-0/+4
| | | | | | | | I was still missing a couple of types on r600/r700 codepaths. Fixes these up. Signed-off-by: Dave Airlie <[email protected]>
* r600g: interpret integer texture types as ints.Dave Airlie2011-09-161-0/+5
| | | | | | | For signed/unsigned with no normalisation or srgb, assume its an INT type texture. Signed-off-by: Dave Airlie <[email protected]>
* r600g: take constantly interpolated values into a/cDave Airlie2011-09-161-3/+4
| | | | | | | We could constant interpolated values now and set have_perspective if nothing else is set to avoid a GPU hang. Signed-off-by: Dave Airlie <[email protected]>
* r600g: add flat non-interpolation support.Dave Airlie2011-09-163-3/+33
| | | | | | | | | TGSI CONSTANT interpolation is just flat, and we just read the values direct from the LDS into the GPR without doing any interpolation on them. This is needed to pass integer types into the fragment shader. Signed-off-by: Dave Airlie <[email protected]>
* r600g: set number type correctly for color buffers.Dave Airlie2011-09-161-5/+29
| | | | | | | | | If we get a scaled type assume its a real integer type (as textures are). Also fixup the blend bypass and blend clamp flags on evergreen as per the docs. Signed-off-by: Dave Airlie <[email protected]>
* r600g: add missing formats to color buffer setup.Dave Airlie2011-09-162-1/+17
| | | | | | just playing with EXT_texture_integer, and this was first bug. Signed-off-by: Dave Airlie <[email protected]>
* softpipe: use consistent indentation in sp_quad_blend.cBrian Paul2011-09-151-183/+183
|
* gallivm: fix build with LLVM 3.0svnTobias Droste2011-09-151-1/+10
| | | | | | | | | LLVM 3.0svn added SubtargetInfo as additional parameter to createMCDisassembler() and createMCInstPrinter(). See revision 139237 of LLVM. Signed-off-by: Tobias Droste <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* softpipe: fix blending for luminance/intensity surfacesBrian Paul2011-09-151-65/+96
| | | | | | | | | | | | | | If we're drawing to a luminance, luminance/alpha or intensity surface we have to adjust (rebase) the fragment/quad colors before writing them to the tile cache. The tile cache always stores RGBA colors but if we're caching a L/A surface (for example) we need to be sure that R=G=B so that subsequent reads from the surface cache appear to return L/A We previously had a special case for RGB (no alpha) surfaces. This change generalizes that for the other base formats. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40408, but sRGB formats are still failing. That'll be addressed in a later patch.
* util: add util_format_is_luminance/intensity/rgb(), etcBrian Paul2011-09-152-1/+112
| | | | Reviewed-by: José Fonseca <[email protected]>
* r600g: Initialize multi VGT related register on Cayman.Michel Dänzer2011-09-143-0/+12
| | | | | | | | Prevents lockups with piglit tests draw-elements and draw-vertices using large numbers of vertices. Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
* nvc0: implement resource_resolveChristoph Bumiller2011-09-144-5/+532
|
* llvmpipe: Remove dead lp_tile_shuffle_mask.py script.José Fonseca2011-09-141-32/+0
| | | | | Broken, and we now shuffle tiles with pack/unpack instructions, instead of shuffle masks.
* nv50/ir: add missing license headersChristoph Bumiller2011-09-1424-1/+484
|
* nvc0: emit tessellation mode and patch size in TCP/TEP validationChristoph Bumiller2011-09-141-1/+12
|
* nv50,nvc0: handle PIPE_CAP_MIN/MAX_TEXEL_OFFSETChristoph Bumiller2011-09-142-0/+8
|
* nvc0: remove old shader backend filesChristoph Bumiller2011-09-147-7270/+0
|
* nvc0: hook up to new shader code generatorChristoph Bumiller2011-09-1410-612/+508
| | | | | | Also includes loading of shared shader library code (used for f64 and integer division) and setting up the immediate array buffer which is appended to the code.
* nv50/ir: import new shader backend codeChristoph Bumiller2011-09-1428-2/+16435
|
* nvc0: prevent interruption of m2mf pushChristoph Bumiller2011-09-141-20/+18
| | | | | M2MF will trap if the data stream is interrupted by a QUERY fence and report too much or not enough data.
* nouveau: make data argument of nouveau_context::push_data constChristoph Bumiller2011-09-145-6/+6
|
* softpipe: implement blend color clampingBrian Paul2011-09-143-29/+117
| | | | | | | | | Per the GL spec, clamp incoming colors prior to blending depending on whether the destination buffer stores normalized (non-float) values. Note that the constant blend color needs to be clamped too (we always get the unclamped color from Mesa). Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40412