mesa.git
14 years agoRemove code copied over from r300
Christian König [Sat, 23 Oct 2010 22:53:49 +0000 (00:53 +0200)]
Remove code copied over from r300

14 years agoFirst xvmc-r600 implementation
Christian König [Sat, 23 Oct 2010 15:47:30 +0000 (17:47 +0200)]
First xvmc-r600 implementation

14 years agoFix uninitialized memory problems
Christian König [Sat, 23 Oct 2010 12:01:13 +0000 (14:01 +0200)]
Fix uninitialized memory problems

14 years agoSome more merge fixes
Christian König [Sat, 23 Oct 2010 11:54:47 +0000 (13:54 +0200)]
Some more merge fixes

14 years agoFix problems created by Merge
Christian König [Sat, 16 Oct 2010 14:41:09 +0000 (16:41 +0200)]
Fix problems created by Merge

14 years agoMerge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-video
Christian König [Tue, 12 Oct 2010 21:05:25 +0000 (23:05 +0200)]
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into pipe-video

Conflicts:
configure.ac
src/gallium/drivers/nvfx/Makefile
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_screen.h
src/gallium/include/state_tracker/dri1_api.h
src/gallium/include/state_tracker/drm_api.h
src/gallium/winsys/nouveau/drm/nouveau_drm_api.c

14 years agodocs: Update status of GL 3.x related extensions
Ian Romanick [Fri, 8 Oct 2010 21:55:27 +0000 (14:55 -0700)]
docs: Update status of GL 3.x related extensions

14 years agodocs: skeleton for 7.10 release notes
Ian Romanick [Fri, 8 Oct 2010 21:50:34 +0000 (14:50 -0700)]
docs: skeleton for 7.10 release notes

14 years agoglsl: Remove const decoration from inlined function parameters
Ian Romanick [Fri, 8 Oct 2010 21:29:11 +0000 (14:29 -0700)]
glsl: Remove const decoration from inlined function parameters

The constness of the function parameter gets inlined with the rest of
the function.  However, there is also an assignment to the parameter.
If this occurs inside a loop the loop analysis code will get confused
by the assignment to a read-only variable.

Fixes bugzilla #30552.

NOTE: this is a candidate for the 7.9 branch.

14 years agointel: Enable GL_ARB_explicit_attrib_location
Ian Romanick [Thu, 7 Oct 2010 22:15:44 +0000 (15:15 -0700)]
intel: Enable GL_ARB_explicit_attrib_location

14 years agomain: Enable GL_ARB_explicit_attrib_location for swrast
Ian Romanick [Tue, 5 Oct 2010 23:01:17 +0000 (16:01 -0700)]
main: Enable GL_ARB_explicit_attrib_location for swrast

14 years agoglsl: Add linker support for explicit attribute locations
Ian Romanick [Fri, 8 Oct 2010 00:21:22 +0000 (17:21 -0700)]
glsl: Add linker support for explicit attribute locations

14 years agoglsl: Track explicit location in AST to IR translation
Ian Romanick [Thu, 7 Oct 2010 22:13:38 +0000 (15:13 -0700)]
glsl: Track explicit location in AST to IR translation

14 years agoglsl: Regenerate files changes by previous commit
Ian Romanick [Wed, 6 Oct 2010 00:03:25 +0000 (17:03 -0700)]
glsl: Regenerate files changes by previous commit

14 years agoglsl: Add parser support for GL_ARB_explicit_attrib_location layouts
Ian Romanick [Wed, 6 Oct 2010 00:00:31 +0000 (17:00 -0700)]
glsl: Add parser support for GL_ARB_explicit_attrib_location layouts

Only layout(location=#) is supported.  Setting the index requires GLSL
1.30 and GL_ARB_blend_func_extended.

14 years agoglcpp: Regenerate files changes by previous commit
Ian Romanick [Tue, 5 Oct 2010 23:03:12 +0000 (16:03 -0700)]
glcpp: Regenerate files changes by previous commit

14 years agoglcpp: Add the define for ARB_explicit_attrib_location when present
Ian Romanick [Tue, 5 Oct 2010 23:02:38 +0000 (16:02 -0700)]
glcpp: Add the define for ARB_explicit_attrib_location when present

14 years agoglsl: Regenerate files modified by previous commits
Ian Romanick [Tue, 5 Oct 2010 23:40:00 +0000 (16:40 -0700)]
glsl: Regenerate files modified by previous commits

14 years agoglsl: Wrap ast_type_qualifier contents in a struct in a union
Ian Romanick [Tue, 5 Oct 2010 23:38:47 +0000 (16:38 -0700)]
glsl: Wrap ast_type_qualifier contents in a struct in a union

This will ease adding non-bit fields in the near future.

14 years agoglsl: Clear type_qualifier using memset
Ian Romanick [Tue, 5 Oct 2010 23:23:32 +0000 (16:23 -0700)]
glsl: Clear type_qualifier using memset

14 years agoglsl: Slight refactor of error / warning checking for ARB_fcc layout
Ian Romanick [Tue, 5 Oct 2010 23:18:56 +0000 (16:18 -0700)]
glsl: Slight refactor of error / warning checking for ARB_fcc layout

14 years agoglsl: Refactor 'layout' grammar to match GLSL 1.60 spec grammar
Ian Romanick [Tue, 5 Oct 2010 23:14:18 +0000 (16:14 -0700)]
glsl: Refactor 'layout' grammar to match GLSL 1.60 spec grammar

14 years agoglsl: Fail linking if assign_attribute_locations fails
Ian Romanick [Fri, 8 Oct 2010 00:20:15 +0000 (17:20 -0700)]
glsl: Fail linking if assign_attribute_locations fails

14 years agor600g: Silence uninitialized variable warning.
Vinson Lee [Fri, 8 Oct 2010 21:17:14 +0000 (14:17 -0700)]
r600g: Silence uninitialized variable warning.

14 years agor600g: Silence uninitialized variable warning.
Vinson Lee [Fri, 8 Oct 2010 21:14:16 +0000 (14:14 -0700)]
r600g: Silence uninitialized variable warning.

14 years agor600g: Silence uninitialized variable warning.
Vinson Lee [Fri, 8 Oct 2010 21:08:50 +0000 (14:08 -0700)]
r600g: Silence uninitialized variable warning.

14 years agogallivm: Remove unnecessary header.
Vinson Lee [Fri, 8 Oct 2010 21:03:10 +0000 (14:03 -0700)]
gallivm: Remove unnecessary header.

14 years agoi965: Add register coalescing to the new FS backend.
Eric Anholt [Tue, 5 Oct 2010 17:29:42 +0000 (10:29 -0700)]
i965: Add register coalescing to the new FS backend.

Improves performance of my GLSL demo 14.3% (+/- 4%, n=4) by
eliminating the moves used in ir_assignment and ir_swizzle handling.
Still 16.5% to go to catch up to the Mesa IR backend, presumably
because instructions are almost perfectly mis-scheduled now.

14 years agoi965: Enable attribute swizzling (repositioning) in the gen6 SF.
Eric Anholt [Fri, 8 Oct 2010 18:16:16 +0000 (11:16 -0700)]
i965: Enable attribute swizzling (repositioning) in the gen6 SF.

We were trying to remap a fully-filled array down to only handing the
WM the components it uses.  This is called attribute swizzling, and if
you don't enable it you just get 1:1 mappings of inputs to outputs.

This almost fixes glsl-routing, except for the highest gl_TexCoord[]
indices.

14 years agoi965: Fix new FS gen6 interpolation for sparsely-populated arrays.
Eric Anholt [Fri, 8 Oct 2010 18:14:48 +0000 (11:14 -0700)]
i965: Fix new FS gen6 interpolation for sparsely-populated arrays.

We'd overwrite the same element twice.

14 years agoi965: Fix gen6 WM push constants updates.
Eric Anholt [Fri, 8 Oct 2010 18:33:40 +0000 (11:33 -0700)]
i965: Fix gen6 WM push constants updates.

We would compute a new buffer, but never point the hardware at the new
buffer.  This partially fixes glsl-routing, as now it get the updated
uniform for which attribute to draw.

14 years agogallivm: Help for combined extraction and broadcasting.
José Fonseca [Fri, 8 Oct 2010 18:48:16 +0000 (19:48 +0100)]
gallivm: Help for combined extraction and broadcasting.

Doesn't change generated code quality, but saves some typing.

14 years agollvmpipe: First minify the texture size, then broadcast.
José Fonseca [Fri, 8 Oct 2010 18:11:32 +0000 (19:11 +0100)]
llvmpipe: First minify the texture size, then broadcast.

14 years agogallivm: Move into the as much of the second level code as possible.
José Fonseca [Fri, 8 Oct 2010 17:24:54 +0000 (18:24 +0100)]
gallivm: Move into the as much of the second level code as possible.

Also, pass more stuff trhough the sample build context, instead of
arguments.

14 years agoi965: Handle swizzles in the addition of YUV texture constants.
Eric Anholt [Fri, 8 Oct 2010 05:37:36 +0000 (22:37 -0700)]
i965: Handle swizzles in the addition of YUV texture constants.

If someone happened to land a set in a different swizzle order, we
would have assertion failed.

14 years agoi965: Drop the check for YUV constants in the param list.
Eric Anholt [Fri, 8 Oct 2010 05:39:41 +0000 (22:39 -0700)]
i965: Drop the check for YUV constants in the param list.

_mesa_add_unnamed_constant() already does that.

14 years agoi965: Drop the check for duplicate _mesa_add_state_reference.
Eric Anholt [Fri, 8 Oct 2010 05:25:35 +0000 (22:25 -0700)]
i965: Drop the check for duplicate _mesa_add_state_reference.

_mesa_add_state_reference does that check for us anyway.

14 years agomesa: Simplify a bit of _mesa_add_state_reference using memcmp.
Eric Anholt [Fri, 8 Oct 2010 05:24:38 +0000 (22:24 -0700)]
mesa: Simplify a bit of _mesa_add_state_reference using memcmp.

14 years agogallivm: Warn when doing inefficient integer comparisons.
José Fonseca [Fri, 8 Oct 2010 16:37:18 +0000 (17:37 +0100)]
gallivm: Warn when doing inefficient integer comparisons.

14 years agogallivm: Avoid control flow for two-sided stencil test.
José Fonseca [Fri, 8 Oct 2010 15:56:45 +0000 (16:56 +0100)]
gallivm: Avoid control flow for two-sided stencil test.

14 years agollvmpipe: fix off-by-one in tri_16
Keith Whitwell [Tue, 5 Oct 2010 15:50:22 +0000 (16:50 +0100)]
llvmpipe: fix off-by-one in tri_16

14 years agollvmpipe: add rast_tri_4_16 for small lines and points
Keith Whitwell [Fri, 8 Oct 2010 16:21:03 +0000 (17:21 +0100)]
llvmpipe: add rast_tri_4_16 for small lines and points

14 years agollvmpipe: clean up setup_tri a little
Keith Whitwell [Thu, 23 Sep 2010 18:56:48 +0000 (19:56 +0100)]
llvmpipe: clean up setup_tri a little

14 years agogallivm: round rather than truncate in new 4x4f->1x16ub conversion path
Keith Whitwell [Wed, 6 Oct 2010 10:48:10 +0000 (11:48 +0100)]
gallivm: round rather than truncate in new 4x4f->1x16ub conversion path

14 years agogallivm: Use the wrappers for SSE pack intrinsics.
José Fonseca [Mon, 4 Oct 2010 16:42:18 +0000 (17:42 +0100)]
gallivm: Use the wrappers for SSE pack intrinsics.

Fixes assertion failures on LLVM 2.6.

14 years agogallivm: special case conversion 4x4f to 1x16ub
Keith Whitwell [Mon, 4 Oct 2010 14:00:34 +0000 (15:00 +0100)]
gallivm: special case conversion 4x4f to 1x16ub

Nice reduction in the number of operations required for final color
output in many shaders.

14 years agollvmpipe: avoid overflow in triangle culling
Keith Whitwell [Fri, 8 Oct 2010 16:06:05 +0000 (17:06 +0100)]
llvmpipe: avoid overflow in triangle culling

Avoid multiplying fixed-point values.  Calculate triangle area in
floating point use that for culling.

Lift area calculations up a level as we are already doing this in the
triangle_both() case.

Would like to share the calculated area with attribute interpolation,
but the way the code is structured makes this difficult.

14 years agollvmpipe: fail gracefully on oom in scene creation
Keith Whitwell [Fri, 8 Oct 2010 16:01:16 +0000 (17:01 +0100)]
llvmpipe: fail gracefully on oom in scene creation

14 years agogallivm: Implement brilinear filtering.
José Fonseca [Fri, 8 Oct 2010 14:50:28 +0000 (15:50 +0100)]
gallivm: Implement brilinear filtering.

14 years agogallivm: Fix copy'n'paste typo in previous commit.
José Fonseca [Fri, 8 Oct 2010 13:09:22 +0000 (14:09 +0100)]
gallivm: Fix copy'n'paste typo in previous commit.

14 years agogallivm: Clamp mipmap level and zero mip weight simultaneously.
José Fonseca [Fri, 8 Oct 2010 13:05:50 +0000 (14:05 +0100)]
gallivm: Clamp mipmap level and zero mip weight simultaneously.

14 years agogallivm: Use lp_build_ifloor_fract for lod computation.
José Fonseca [Fri, 8 Oct 2010 12:36:18 +0000 (13:36 +0100)]
gallivm: Use lp_build_ifloor_fract for lod computation.

Forgot this one before.

14 years agogallivm: Don't compute the second mipmap level when frac(lod) == 0
José Fonseca [Fri, 8 Oct 2010 12:26:37 +0000 (13:26 +0100)]
gallivm: Don't compute the second mipmap level when frac(lod) == 0

14 years agogallivm: Simplify lp_build_mipmap_level_sizes' interface.
José Fonseca [Fri, 8 Oct 2010 12:24:39 +0000 (13:24 +0100)]
gallivm: Simplify lp_build_mipmap_level_sizes' interface.

14 years agogallivm: Do not do mipfiltering when magnifying.
José Fonseca [Fri, 8 Oct 2010 09:54:23 +0000 (10:54 +0100)]
gallivm: Do not do mipfiltering when magnifying.

If lod < 0, then invariably follows that ilevel0 == ilevel1 == 0.

14 years agor600g: Remove unnecessary header.
Vinson Lee [Fri, 8 Oct 2010 11:56:49 +0000 (04:56 -0700)]
r600g: Remove unnecessary header.

14 years agor600g: drop width/height per level storage.
Dave Airlie [Fri, 8 Oct 2010 09:55:05 +0000 (19:55 +1000)]
r600g: drop width/height per level storage.

these aren't used anywhere, so just waste memory.

14 years agoi965: Normalize cubemap coordinates like is done in the Mesa IR path.
Eric Anholt [Wed, 6 Oct 2010 05:30:42 +0000 (22:30 -0700)]
i965: Normalize cubemap coordinates like is done in the Mesa IR path.

Fixes glsl-fs-texturecube-2-*

14 years agoi965: Disable emitting if () statements on gen6 until we really fix them.
Eric Anholt [Thu, 7 Oct 2010 16:13:09 +0000 (09:13 -0700)]
i965: Disable emitting if () statements on gen6 until we really fix them.

14 years agor600g: add some RG texture format support.
Dave Airlie [Thu, 7 Oct 2010 23:35:17 +0000 (09:35 +1000)]
r600g: add some RG texture format support.

14 years agogles2: Add GL_EXT_texture_format_BGRA8888 support
Kristian Høgsberg [Thu, 7 Oct 2010 21:03:53 +0000 (17:03 -0400)]
gles2: Add GL_EXT_texture_format_BGRA8888 support

14 years agogallivm: Vectorize the rho computation.
José Fonseca [Thu, 7 Oct 2010 21:03:59 +0000 (22:03 +0100)]
gallivm: Vectorize the rho computation.

14 years agor600g: fix Z export enable bits.
Dave Airlie [Thu, 7 Oct 2010 05:32:05 +0000 (15:32 +1000)]
r600g: fix Z export enable bits.

we should be checking output array not input to decide.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agor600g: use format from the sampler view not from the texture.
Dave Airlie [Thu, 7 Oct 2010 05:13:09 +0000 (15:13 +1000)]
r600g: use format from the sampler view not from the texture.

we want to use the format from the sampler view which isn't always the
same as the texture format when creating sampler views.

14 years agor600g: fix evergreen interpolation setup
Andre Maasikas [Wed, 6 Oct 2010 18:14:15 +0000 (21:14 +0300)]
r600g: fix evergreen interpolation setup

interp data is stored in gpr0 so first interp overwrote it
and subsequent ones got wrong values

reserve register 0 so it's not used for attribs.
alternative is to interpolate attrib0 last (reverse, as r600c does)

14 years agost/vega: Fix version check in context creation.
Chia-I Wu [Thu, 7 Oct 2010 04:14:38 +0000 (12:14 +0800)]
st/vega: Fix version check in context creation.

This fixes a regression since 4531356817ec8383ac35932903773de67af92e37.

14 years agotargets/egl: Fix linking with libdrm.
Chia-I Wu [Thu, 7 Oct 2010 04:06:07 +0000 (12:06 +0800)]
targets/egl: Fix linking with libdrm.

14 years agoi965: Fix gen6 pointsize handling to match pre-gen6.
Eric Anholt [Thu, 7 Oct 2010 00:29:29 +0000 (17:29 -0700)]
i965: Fix gen6 pointsize handling to match pre-gen6.

Fixes point-line-no-cull.
Bug #30532

14 years agoi965: Don't assume that WPOS is always provided on gen6 in the new FS.
Eric Anholt [Wed, 6 Oct 2010 19:10:31 +0000 (12:10 -0700)]
i965: Don't assume that WPOS is always provided on gen6 in the new FS.

We sensibly only provide it if the FS asks for it.  We could actually
skip WPOS unless the FS needed WPOS.zw, but that's something for
later.

Fixes: glsl-texture2d and probably many others.
14 years agoi965: Add support for gl_FrontFacing on gen6.
Eric Anholt [Wed, 6 Oct 2010 18:19:48 +0000 (11:19 -0700)]
i965: Add support for gl_FrontFacing on gen6.

Fixes glsl1-gl_FrontFacing var (2) with new FS.

14 years agoi965: Refactor gl_FrontFacing setup out of general variable setup.
Eric Anholt [Wed, 6 Oct 2010 18:13:22 +0000 (11:13 -0700)]
i965: Refactor gl_FrontFacing setup out of general variable setup.

14 years agoi965: Gen6's sampler messages are the same as Ironlake.
Eric Anholt [Wed, 6 Oct 2010 18:04:02 +0000 (11:04 -0700)]
i965: Gen6's sampler messages are the same as Ironlake.

This should fix texturing in the new FS backend.

14 years agoi965: Don't do 1/w multiplication in new FS for gen6
Eric Anholt [Wed, 6 Oct 2010 18:00:31 +0000 (11:00 -0700)]
i965: Don't do 1/w multiplication in new FS for gen6

Not needed now that we're doing barycentric.

14 years agoi965: Add some clarification of the WECtrl field.
Eric Anholt [Wed, 6 Oct 2010 17:22:22 +0000 (10:22 -0700)]
i965: Add some clarification of the WECtrl field.

14 years agoi965: Fix botch in the header_present case in the new FS.
Eric Anholt [Wed, 6 Oct 2010 18:25:05 +0000 (11:25 -0700)]
i965: Fix botch in the header_present case in the new FS.

I only set it on the color_regions == 0 case, missing the important
case, causing GPU hangs on pre-gen6.

14 years agollvmpipe: Cleanup depth-stencil clears.
José Fonseca [Wed, 6 Oct 2010 09:11:15 +0000 (10:11 +0100)]
llvmpipe: Cleanup depth-stencil clears.

Only cosmetic changes. No actual practical difference.

14 years agoutil: Cleanup util_pack_z_stencil and friends.
José Fonseca [Wed, 6 Oct 2010 09:09:37 +0000 (10:09 +0100)]
util: Cleanup util_pack_z_stencil and friends.

- Handle PIPE_FORMAT_Z32_FLOAT packing correctly.

- In the integer version z shouldn't be passed as as double.

- Make it clear that the integer versions should only be used for masks.

- Make integer type sizes explicit (uint32_t for now, although
  uint64_t will be necessary later to encode f32_s8_x24).

14 years agogallivm: Compute lod as integer whenever possible.
José Fonseca [Wed, 6 Oct 2010 17:44:51 +0000 (18:44 +0100)]
gallivm: Compute lod as integer whenever possible.

More accurate/faster results for PIPE_TEX_MIPFILTER_NEAREST. Less
FP <-> SI conversion overall.

14 years agogallivm: Only apply min/max_lod when necessary.
José Fonseca [Wed, 6 Oct 2010 13:53:19 +0000 (14:53 +0100)]
gallivm: Only apply min/max_lod when necessary.

14 years agogallivm: don't apply zero lod_bias
Keith Whitwell [Thu, 30 Sep 2010 15:43:56 +0000 (16:43 +0100)]
gallivm: don't apply zero lod_bias

14 years agogallivm: Combined ifloor & fract helper.
José Fonseca [Wed, 6 Oct 2010 17:31:36 +0000 (18:31 +0100)]
gallivm: Combined ifloor & fract helper.

The only way to ensure we don't do redundant FP <-> SI conversions.

14 years agogallivm: Fast implementation of iround(log2(x))
José Fonseca [Wed, 6 Oct 2010 16:44:05 +0000 (17:44 +0100)]
gallivm: Fast implementation of iround(log2(x))

Not tested yet, but should be correct.

14 years agogallivm: Use a faster (and less accurate) log2 in lod computation.
José Fonseca [Wed, 6 Oct 2010 13:06:14 +0000 (14:06 +0100)]
gallivm: Use a faster (and less accurate) log2 in lod computation.

14 years agogallivm: Take the type signedness in consideration in round/ceil/floor.
José Fonseca [Wed, 6 Oct 2010 11:09:32 +0000 (12:09 +0100)]
gallivm: Take the type signedness in consideration in round/ceil/floor.

14 years agoi965: Fix up IF/ELSE/ENDIF for gen6.
Eric Anholt [Mon, 4 Oct 2010 22:08:03 +0000 (15:08 -0700)]
i965: Fix up IF/ELSE/ENDIF for gen6.

The jump delta is now in the part of the instruction where the
destination fields used to be, and the src args are ignored (or not,
for the new non-predicated IF that we don't use yet).

14 years agoi965: Gen6 no longer has the IFF instruction; always use IF.
Eric Anholt [Mon, 4 Oct 2010 22:09:18 +0000 (15:09 -0700)]
i965: Gen6 no longer has the IFF instruction; always use IF.

14 years agoi965: Add back gen6 headerless FB writes to the new FS backend.
Eric Anholt [Wed, 6 Oct 2010 16:57:55 +0000 (09:57 -0700)]
i965: Add back gen6 headerless FB writes to the new FS backend.

It's not that hard to detect when we need the header.

14 years agor600g: fix dirty state handling
Jerome Glisse [Wed, 6 Oct 2010 16:56:53 +0000 (12:56 -0400)]
r600g: fix dirty state handling

Avoid having object ending up in dead list of dirty object.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agoi965: Also do constant propagation for the second operand of CMP.
Eric Anholt [Tue, 5 Oct 2010 17:25:22 +0000 (10:25 -0700)]
i965: Also do constant propagation for the second operand of CMP.

We could do the first operand as well by flipping the comparison, but
this covered several CMPs in code I was looking at.

14 years agoi965: Enable the constant propagation code.
Eric Anholt [Tue, 5 Oct 2010 17:20:16 +0000 (10:20 -0700)]
i965: Enable the constant propagation code.

A debug disable had slipped in.

14 years agor600g: avoid segfault due to unintialized list pointer
Jerome Glisse [Wed, 6 Oct 2010 13:40:27 +0000 (09:40 -0400)]
r600g: avoid segfault due to unintialized list pointer

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agollvmpipe: Fix sprite coord perspective interpolation of Q.
José Fonseca [Wed, 6 Oct 2010 08:40:51 +0000 (09:40 +0100)]
llvmpipe: Fix sprite coord perspective interpolation of Q.

Q coordinate's coefficients also need to be multiplied by w, otherwise
it will have 1/w, causing problems with TXP.

14 years agollvmpipe: Fix perspective interpolation for point sprites.
José Fonseca [Sun, 26 Sep 2010 10:22:20 +0000 (11:22 +0100)]
llvmpipe: Fix perspective interpolation for point sprites.

Once a fragment is generated with LP_INTERP_PERSPECTIVE set for an input,
it will do a divide by w for that input. Therefore it's not OK to treat LP_INTERP_PERSPECTIVE as
LP_INTERP_LINEAR or vice-versa, even if the attribute is known to not
vary.

A better strategy would be to take the primitive in consideration when
generating the fragment shader key, and therefore avoid the per-fragment
perspective divide.

14 years agollvmpipe: Dump a few missing shader key flags.
José Fonseca [Tue, 5 Oct 2010 09:50:02 +0000 (10:50 +0100)]
llvmpipe: Dump a few missing shader key flags.

14 years agollvmpipe: make debug_fs_variant respect variant->nr_samplers
Keith Whitwell [Sun, 3 Oct 2010 10:39:02 +0000 (11:39 +0100)]
llvmpipe: make debug_fs_variant respect variant->nr_samplers

14 years agoretrace: Handle clear_render_target and clear_depth_stencil.
José Fonseca [Mon, 4 Oct 2010 16:05:03 +0000 (17:05 +0100)]
retrace: Handle clear_render_target and clear_depth_stencil.

14 years agor600g: add evergreen stencil support.
Dave Airlie [Tue, 5 Oct 2010 23:21:16 +0000 (09:21 +1000)]
r600g: add evergreen stencil support.

this sets the stencil up for evergreen properly.

14 years agor600g: userspace fence to avoid kernel call for testing bo busy status
Jerome Glisse [Tue, 5 Oct 2010 20:14:11 +0000 (16:14 -0400)]
r600g: userspace fence to avoid kernel call for testing bo busy status

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agost/mesa: replace assertion w/ conditional in framebuffer invalidation
Brian Paul [Tue, 5 Oct 2010 20:32:59 +0000 (14:32 -0600)]
st/mesa: replace assertion w/ conditional in framebuffer invalidation

https://bugs.freedesktop.org/show_bug.cgi?id=30632

NOTE: this is a candidate for the 7.9 branch.

14 years agor600g: simplify block relocation
Jerome Glisse [Tue, 5 Oct 2010 19:23:07 +0000 (15:23 -0400)]
r600g: simplify block relocation

Since flush rework there could be only one relocation per
register in a block.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>