summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* scons: fix incorrect test for embedded buildBrian Paul2011-09-161-1/+1
| | | | | | This was missed back in commit 41750107496858a047afa8d81d20fe903f285a78. Reviewed-by: José Fonseca <[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]>
* Change strerror(ret) to strerror(-ret).Eugeni Dodonov2011-09-151-1/+1
|
* 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]>
* wayland: Flush before blocking in swapbuffers.Jørgen Lind2011-09-151-2/+5
| | | | Make sure that we've sent the frame request that we're going to block on.
* mesa: fix error handling for dlist image unpackingBrian Paul2011-09-151-1/+14
| | | | | | | | | | | | | | | When compiling glDrawPixels, glTexImage(), etc. and we're copying the user's image we need to be careful about GL error checking. Previously, we were incorrectly generating GL_OUT_OF_MEMORY in unpack_image() if width <= 0 or height <= 0 or for invalid format/type values. We now check those arguments in unpack_image() and return NULL if there's a bad value. The command will get compiled with the arguments as-is and image=NULL. Later, when the command is executed the correct errors will be generated. This issue was reported by Yuanhan Liu <[email protected]> Reviewed-by: Yuanhan Liu <[email protected]>
* st/mesa: rewrap a long lineBrian Paul2011-09-151-3/+4
|
* mesa: add missing ')' in error messageBrian Paul2011-09-151-1/+1
|
* uniforms: accept all int/unsigned int sampler types in uniform checks.Dave Airlie2011-09-151-0/+22
| | | | | | | | | | I'm not 100% sure about this, it may need a version check or it might be completely wrong. added multisample ones as well. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* glsl: Remove field array_lvalue from ir_variable.Paul Berry2011-09-144-32/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The array_lvalue field was attempting to enforce the restriction that whole arrays can't be used on the left-hand side of an assignment in GLSL 1.10 or GLSL ES, and can't be used as out or inout parameters in GLSL 1.10. However, it was buggy (it didn't work properly for built-in arrays), and it was clumsy (it unnecessarily kept track on a variable-by-variable basis, and it didn't cover the GLSL ES case). This patch removes the array_lvalue field completely in favor of explicit checks in ast_parameter_declarator::hir() (this check is added) and in do_assignment (this check was already present). This causes a benign behavioral change: when the user attempts to pass an array as an out or inout parameter of a function in GLSL 1.10, the error is now flagged at the time the function definition is encountered, rather than at the time of invocation. Previously we allowed such functions to be defined, and only flagged the error if they were invoked. Fixes Piglit tests spec/glsl-1.10/compiler/qualifiers/fn-{out,inout}-array-prohibited* and spec/glsl-1.20/compiler/assignment-operators/assign-builtin-array-allowed.vert. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[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]>
* glx/dri2: Don't call X server for SwapBuffers when there's no back buffer.Michel Dänzer2011-09-141-0/+4
| | | | | | | | | | | | | | | As already done in dri2CopySubBuffer(). Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=36371 https://bugs.freedesktop.org/show_bug.cgi?id=40533 Might fix: https://bugs.freedesktop.org/show_bug.cgi?id=32589 Signed-off-by: Michel Dänzer <[email protected]>
* DRI: Log something if we don't support legacy DRIAndrew Deason2011-09-141-1/+3
| | | | | | | | If we are called via the legacy DRI interface, and we don't support legacy DRI (InitScreen is NULL), print a debug message, so it is easy to see why the driver fails to initialize. See https://bugs.freedesktop.org/show_bug.cgi?id=40437
* GLX: Say something if we cannot connect via DRI2Andrew Deason2011-09-141-0/+1
| | | | See https://bugs.freedesktop.org/show_bug.cgi?id=40437
* 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
|
* st/mesa: fix/update comment on st_translate_color()Brian Paul2011-09-141-2/+3
|
* 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
* mesa: minor clean-up on _mesa_unclamped_float_rgba_to_ubyte()Brian Paul2011-09-141-1/+7
| | | | Add a comment and reformat to be under 80 columns.
* mesa: white space, comment fixes in mtypes.hBrian Paul2011-09-141-7/+14
| | | | "vale" was a typo. Fix that and do some other minor clean-ups.
* st/vdpau: Preliminary support for timestamped output surface into the ↵Emeric Grange2011-09-142-6/+80
| | | | | | | presentation queue Signed-off-by: Emeric Grange <[email protected]> Signed-off-by: Christian König <[email protected]>
* st/vdpau: Output surfaces that are too large to fit into the display target ↵Emeric Grange2011-09-141-1/+7
| | | | | | | will be clipped Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
* st/vdpau: Add get_clear_color capabilityEmeric Grange2011-09-141-1/+9
| | | | | Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
* st/vdpau: Add documentation from the VDPAU API and update some tracesEmeric Grange2011-09-1410-20/+235
| | | | | Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
* st/vdpau: Various whitespace cleanups found while reading some codeEmeric Grange2011-09-149-33/+34
| | | | | Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
* nouveau: Add max_references parameter to vl_create_decoder()Emeric Grange2011-09-141-6/+7
| | | | Signed-off-by: Emeric Grange <[email protected]>
* g3dvl: Add max_references parameter to vl_create_decoder()Emeric Grange2011-09-148-9/+11
| | | | Signed-off-by: Emeric Grange <[email protected]>
* g3dvl: Add get_clear_color capabilityEmeric Grange2011-09-142-0/+18
| | | | | Signed-off-by: Emeric Grange <[email protected]> Reviewed-by: Christian König <[email protected]>
* g3dvl: Various whitespace cleanups found while reading some codeEmeric Grange2011-09-144-18/+20
| | | | Signed-off-by: Emeric Grange <[email protected]>
* mesa/colormac: introduce inline helper for 4 unclamped float to ubyte.Dave Airlie2011-09-149-50/+21
| | | | | | | | | This introduces an UNCLAMPED_FLOAT_TO_UBYTE x 4 inline function, as suggested by Brian. It uses it in a few places I noticed from previous color changes, and also some core mesa places. I haven't updated other places yet. Signed-off-by: Dave Airlie <[email protected]>
* mesa: introduce a clear color union to be used for int/unsigned buffersDave Airlie2011-09-1418-140/+146
| | | | | | | | | | This introduces a new gl_color_union union and moves the current ClearColorUnclamped to use it, it removes current ClearColor completely and renames CCU to CC, then all drivers are modified to expected unclamped floats instead. also fixes st to use translated color in one place it wasn't. Signed-off-by: Dave Airlie <[email protected]>