summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-17r300/compiler: Prevent regalloc from creating non-native swizzlessched-r500Tom Stellard1-16/+63
2011-09-17r300/compiler: Enable reg rename pass on r500 and run it before optimizationsTom Stellard1-4/+4
The scheduler and the register allocator are now smart enough to handle it.
2011-09-17r300/compiler: Prefer scheduling instructions that read the most channelsTom Stellard1-25/+163
2011-09-17r300/compiler: Allow merged instructions to be scheduled on demandTom Stellard1-50/+99
We no longer emit full instructions immediately after they have been merged. Instead merged instructions are added to the ready list and the scheduler can commit them whenever it wants.
2011-09-17mesa: implement unpack_SIGNED_GR1616 in format_unpack.cBrian Paul1-1/+5
2011-09-17meta: fix/add checks for GL_EXT_framebuffer_sRGBBrian Paul1-2/+4
This fixes spurious GL errors when the GL_EXT_framebuffer_sRGB extension is not supported. Note: This is a candidate for the 7.11 branch
2011-09-17mesa: s/short/ushort/ in unpack_SIGNED_RGBA_16()Brian Paul1-1/+1
2011-09-17d3d1x: fix parsing of SM4 relative addressing register opChristoph Bumiller1-1/+1
2011-09-17d3d1x: set flatshade_first in rasterizer stateChristoph Bumiller2-0/+2
D3D10 specifies the first vertex as the leading/provoking one.
2011-09-17d3d1x: initialize point size and line width to 1Christoph Bumiller2-0/+4
Otherwise lines would never be visible since the width cannot be specified in D3D10. Wireframe mode is also affected by line width.
2011-09-16r300/compiler: Add support for the output modifier (OMOD)Tom Stellard16-25/+310
2011-09-16r300/compiler: Move some helper functions to radeon_compiler_util.cTom Stellard3-33/+68
2011-09-16r300/compiler: Don't unroll loops that conditionally increment the counterTom Stellard1-2/+14
2011-09-16nouveau: Fix typos of ParseSourceList in SConscript files.Vinson Lee4-4/+4
Reviewed-by: Chia-I Wu <olv@lunarg.com>
2011-09-16scons: fix incorrect test for embedded buildBrian Paul1-1/+1
This was missed back in commit 41750107496858a047afa8d81d20fe903f285a78. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-09-16winsys/radeon: use the cache bufmgr for buffers with PIPE_BIND_CUSTOMMarek Olšák2-2/+2
so that we don't abuse PIPE_BIND_VERTEX_BUFFER all the time.
2011-09-16softpipe: use pipe_get_tile_rgba_format()Brian Paul1-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 <airlied@redhat.com>
2011-09-16softpipe: use util_format_is_depth_or_stencil()Brian Paul1-7/+1
Reviewed-by: Dave Airlie <airlied@redhat.com>
2011-09-16r600g: fixup missing scaled r600 types.Dave Airlie1-0/+4
I was still missing a couple of types on r600/r700 codepaths. Fixes these up. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-09-16r600g: interpret integer texture types as ints.Dave Airlie1-0/+5
For signed/unsigned with no normalisation or srgb, assume its an INT type texture. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-09-16r600g: take constantly interpolated values into a/cDave Airlie1-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 <airlied@redhat.com>
2011-09-16r600g: add flat non-interpolation support.Dave Airlie3-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 <airlied@redhat.com>
2011-09-16r600g: set number type correctly for color buffers.Dave Airlie1-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 <airlied@redhat.com>
2011-09-16r600g: add missing formats to color buffer setup.Dave Airlie2-1/+17
just playing with EXT_texture_integer, and this was first bug. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-09-15softpipe: use consistent indentation in sp_quad_blend.cBrian Paul1-183/+183
2011-09-15gallivm: fix build with LLVM 3.0svnTobias Droste1-1/+10
LLVM 3.0svn added SubtargetInfo as additional parameter to createMCDisassembler() and createMCInstPrinter(). See revision 139237 of LLVM. Signed-off-by: Tobias Droste <tdroste@gmx.de> Signed-off-by: Brian Paul <brianp@vmware.com>
2011-09-15Change strerror(ret) to strerror(-ret).Eugeni Dodonov1-1/+1
2011-09-15softpipe: fix blending for luminance/intensity surfacesBrian Paul1-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.
2011-09-15util: add util_format_is_luminance/intensity/rgb(), etcBrian Paul2-1/+112
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2011-09-15wayland: Flush before blocking in swapbuffers.Jørgen Lind1-2/+5
Make sure that we've sent the frame request that we're going to block on.
2011-09-15mesa: fix error handling for dlist image unpackingBrian Paul1-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 <yuanhan.liu@linux.intel.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2011-09-15st/mesa: rewrap a long lineBrian Paul1-3/+4
2011-09-15mesa: add missing ')' in error messageBrian Paul1-1/+1
2011-09-15uniforms: accept all int/unsigned int sampler types in uniform checks.Dave Airlie1-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 <airlied@redhat.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-09-14glsl: Remove field array_lvalue from ir_variable.Paul Berry4-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 <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-09-14r600g: Initialize multi VGT related register on Cayman.Michel Dänzer3-0/+12
Prevents lockups with piglit tests draw-elements and draw-vertices using large numbers of vertices. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alex.deucher@amd.com>
2011-09-14glx/dri2: Don't call X server for SwapBuffers when there's no back buffer.Michel Dänzer1-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 <michel.daenzer@amd.com>
2011-09-14DRI: Log something if we don't support legacy DRIAndrew Deason1-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
2011-09-14GLX: Say something if we cannot connect via DRI2Andrew Deason1-0/+1
See https://bugs.freedesktop.org/show_bug.cgi?id=40437
2011-09-14nvc0: implement resource_resolveChristoph Bumiller4-5/+532
2011-09-14llvmpipe: Remove dead lp_tile_shuffle_mask.py script.José Fonseca1-32/+0
Broken, and we now shuffle tiles with pack/unpack instructions, instead of shuffle masks.
2011-09-14scons: Remove dead MSVC SDK/DDK/WINCE tools.José Fonseca6-1084/+0
Not really used anymore.
2011-09-14nv50/ir: add missing license headersChristoph Bumiller24-1/+484
2011-09-14st/mesa: fix/update comment on st_translate_color()Brian Paul1-2/+3
2011-09-14nvc0: emit tessellation mode and patch size in TCP/TEP validationChristoph Bumiller1-1/+12
2011-09-14nv50,nvc0: handle PIPE_CAP_MIN/MAX_TEXEL_OFFSETChristoph Bumiller2-0/+8
2011-09-14nvc0: remove old shader backend filesChristoph Bumiller7-7270/+0
2011-09-14nvc0: hook up to new shader code generatorChristoph Bumiller10-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.
2011-09-14nv50/ir: import new shader backend codeChristoph Bumiller28-2/+16435
2011-09-14nvc0: prevent interruption of m2mf pushChristoph Bumiller1-20/+18
M2MF will trap if the data stream is interrupted by a QUERY fence and report too much or not enough data.