mesa.git
13 years agost/xorg: Fix compilation for Xservers >= 1.10
Thomas Hellstrom [Tue, 19 Oct 2010 09:44:08 +0000 (11:44 +0200)]
st/xorg: Fix compilation for Xservers >= 1.10

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
13 years agoxorg/vmwgfx: Don't use deprecated x*alloc / xfree functions
Thomas Hellstrom [Tue, 19 Oct 2010 09:25:15 +0000 (11:25 +0200)]
xorg/vmwgfx: Don't use deprecated x*alloc / xfree functions

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
13 years agost/xorg: Don't use deprecated x*alloc / xfree functions
Thomas Hellstrom [Tue, 19 Oct 2010 08:39:24 +0000 (10:39 +0200)]
st/xorg: Don't use deprecated x*alloc / xfree functions

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
13 years agost/xorg: Fix compilation errors for Xservers compiled without Composite
Thomas Hellstrom [Tue, 19 Oct 2010 07:35:16 +0000 (09:35 +0200)]
st/xorg: Fix compilation errors for Xservers compiled without Composite

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
13 years agost/xorg, xorg/vmwgfx: Be a bit more frendly towards cross-compiling environments
Thomas Hellstrom [Thu, 14 Oct 2010 20:18:38 +0000 (22:18 +0200)]
st/xorg, xorg/vmwgfx: Be a bit more frendly towards cross-compiling environments

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
13 years agor300/compiler: Remove unused variable.
Vinson Lee [Tue, 19 Oct 2010 07:07:22 +0000 (00:07 -0700)]
r300/compiler: Remove unused variable.

13 years agor300g: Add new debug option for logging vertex/fragment program stats
Tom Stellard [Mon, 18 Oct 2010 06:17:01 +0000 (23:17 -0700)]
r300g: Add new debug option for logging vertex/fragment program stats

13 years agor300/compiler: Add a new function for more efficient dataflow analysis
Tom Stellard [Sun, 10 Oct 2010 19:39:00 +0000 (12:39 -0700)]
r300/compiler: Add a new function for more efficient dataflow analysis

rc_get_readers_normal() supplies a list of readers for a given
instruction.  This function is now being used by the copy propagate
optimization and will eventually be used by most other optimization
passes as well.

13 years agor300/compiler: Clear empty registers after constant folding
Tom Stellard [Thu, 14 Oct 2010 06:45:12 +0000 (23:45 -0700)]
r300/compiler: Clear empty registers after constant folding

13 years agor300/compiler: Fix incorrect assumption
Tom Stellard [Wed, 6 Oct 2010 05:53:40 +0000 (22:53 -0700)]
r300/compiler: Fix incorrect assumption

It is possible for a single pair instruction arg to select from both an
RGB and an Alpha source.

13 years agor300/compiler: Create a helper function for merging presubtract sources
Tom Stellard [Fri, 1 Oct 2010 06:36:57 +0000 (23:36 -0700)]
r300/compiler: Create a helper function for merging presubtract sources

13 years agoi965: Remove unused variable.
Kenneth Graunke [Tue, 19 Oct 2010 01:14:33 +0000 (18:14 -0700)]
i965: Remove unused variable.

13 years agoglsl: Regenerate parser files.
Kenneth Graunke [Tue, 19 Oct 2010 00:30:16 +0000 (17:30 -0700)]
glsl: Regenerate parser files.

13 years agoglsl: Fix copy and paste error in ast_bit_and node creation.
Kenneth Graunke [Tue, 19 Oct 2010 00:25:52 +0000 (17:25 -0700)]
glsl: Fix copy and paste error in ast_bit_and node creation.

All & operations were incorrectly being generated as ast_bit_or.

13 years agoi965: Avoid blits in BufferCopySubdata on gen6.
Eric Anholt [Mon, 18 Oct 2010 21:12:12 +0000 (14:12 -0700)]
i965: Avoid blits in BufferCopySubdata on gen6.

Fixes glean/bufferObject.

13 years agoi965: Fix scissor-offscreen on gen6 like we did pre-gen6.
Eric Anholt [Mon, 18 Oct 2010 20:11:29 +0000 (13:11 -0700)]
i965: Fix scissor-offscreen on gen6 like we did pre-gen6.

13 years agoi965: Assert out on gen6 VS constant buffer reads that hang the GPU for now.
Eric Anholt [Mon, 18 Oct 2010 19:41:10 +0000 (12:41 -0700)]
i965: Assert out on gen6 VS constant buffer reads that hang the GPU for now.

13 years agoi965: Fix assertion failure on gen6 BufferSubData to busy BO.
Eric Anholt [Mon, 18 Oct 2010 18:32:19 +0000 (11:32 -0700)]
i965: Fix assertion failure on gen6 BufferSubData to busy BO.

Fixes fbo-blit and probably several other tests.

13 years agoi965: Fix a weirdness in NOT handling.
Eric Anholt [Mon, 18 Oct 2010 18:13:26 +0000 (11:13 -0700)]
i965: Fix a weirdness in NOT handling.

XOR makes much more sense.  Note that the previous code would have
failed for not(not(x)), but that gets optimized out.

13 years agoi965: Disable the debug printf I added for FS disasm.
Eric Anholt [Mon, 18 Oct 2010 17:59:46 +0000 (10:59 -0700)]
i965: Disable the debug printf I added for FS disasm.

13 years agoi965: Add missing "break" statement.
Kenneth Graunke [Mon, 18 Oct 2010 19:21:20 +0000 (12:21 -0700)]
i965: Add missing "break" statement.

Otherwise, it would try to handle arrays as structures, use
uninitialized memory, and crash.

13 years agollvmpipe: Don't test rounding of x.5 numbers.
José Fonseca [Mon, 18 Oct 2010 16:35:21 +0000 (09:35 -0700)]
llvmpipe: Don't test rounding of x.5 numbers.

SSE4.1 has different rules, and so far this doesn't seem to cause any
problems with conformance test suites.

13 years agogallivm: Add a note about SSE4.1's nearest mode rounding.
José Fonseca [Mon, 18 Oct 2010 16:32:35 +0000 (09:32 -0700)]
gallivm: Add a note about SSE4.1's nearest mode rounding.

13 years agomesa: Add missing else in do_row_3D
Brian Rogers [Sun, 17 Oct 2010 21:21:06 +0000 (14:21 -0700)]
mesa: Add missing else in do_row_3D

This fixes erroneous "bad format in do_row()" messages

Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agollvmpipe: remove lp_setup_coef*.c files from Makefile
Brian Paul [Mon, 18 Oct 2010 13:59:02 +0000 (07:59 -0600)]
llvmpipe: remove lp_setup_coef*.c files from Makefile

13 years agoegl/i965: include inline_wrapper_sw_helper.h
Victor Tseng [Mon, 18 Oct 2010 13:55:37 +0000 (07:55 -0600)]
egl/i965: include inline_wrapper_sw_helper.h

Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agoglsl: Don't return NULL IR for erroneous bit-shift operators.
Kenneth Graunke [Mon, 18 Oct 2010 07:24:46 +0000 (00:24 -0700)]
glsl: Don't return NULL IR for erroneous bit-shift operators.

Existing code relies on IR being generated (possibly with error type)
rather than returning NULL.  So, don't break - go ahead and generate the
operation.  As long as an error is flagged, things will work out.

Fixes fd.o bug #30914.

13 years agor600g: retrieve tiling info from kernel for shared buffers.
Dave Airlie [Sun, 17 Oct 2010 23:45:58 +0000 (09:45 +1000)]
r600g: retrieve tiling info from kernel for shared buffers.

we need to know if the back is tiled so we can blit from it properly.

13 years agor600g: fix transfer function for tiling.
Dave Airlie [Wed, 13 Oct 2010 00:44:46 +0000 (10:44 +1000)]
r600g: fix transfer function for tiling.

this makes readback with tiled back work better.

13 years agor600g: attempt to cleanup depth blit
Dave Airlie [Mon, 18 Oct 2010 02:05:27 +0000 (12:05 +1000)]
r600g: attempt to cleanup depth blit

cleanup what I'm nearly sure is unnecessary work in the depth blit code.

13 years agor600g: depth needs to bound to ds
Dave Airlie [Mon, 18 Oct 2010 03:23:34 +0000 (13:23 +1000)]
r600g: depth needs to bound to ds

13 years agor600g: fix typo in tiling setup cb code.
Dave Airlie [Mon, 18 Oct 2010 02:05:38 +0000 (12:05 +1000)]
r600g: fix typo in tiling setup cb code.

13 years agor600g: do proper tracking of views/samplers.
Dave Airlie [Mon, 18 Oct 2010 02:04:57 +0000 (12:04 +1000)]
r600g: do proper tracking of views/samplers.

we need to do pretty much what r300g does in for this, this fixes some
issues seen while working on tiling.

13 years agollvmpipe: remove unused arg from jit_setup_tri function
Keith Whitwell [Mon, 18 Oct 2010 02:23:40 +0000 (19:23 -0700)]
llvmpipe: remove unused arg from jit_setup_tri function

13 years agollvmpipe: remove unused file
Keith Whitwell [Mon, 18 Oct 2010 02:11:47 +0000 (19:11 -0700)]
llvmpipe: remove unused file

13 years agoMerge remote branch 'origin/master' into lp-setup-llvm
Keith Whitwell [Mon, 18 Oct 2010 02:03:42 +0000 (19:03 -0700)]
Merge remote branch 'origin/master' into lp-setup-llvm

Conflicts:
src/gallium/drivers/llvmpipe/lp_setup_coef.c
src/gallium/drivers/llvmpipe/lp_setup_coef.h
src/gallium/drivers/llvmpipe/lp_setup_coef_intrin.c
src/gallium/drivers/llvmpipe/lp_setup_point.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_fs.h

13 years agollvmpipe: fail cleanly on malloc failure in lp_setup_alloc_triangle
Keith Whitwell [Mon, 18 Oct 2010 01:48:11 +0000 (18:48 -0700)]
llvmpipe: fail cleanly on malloc failure in lp_setup_alloc_triangle

13 years agollvmpipe: remove setup fallback path
Keith Whitwell [Mon, 18 Oct 2010 01:29:28 +0000 (18:29 -0700)]
llvmpipe: remove setup fallback path

13 years agogallivm: Comment lp_build_insert_new_block().
José Fonseca [Sun, 17 Oct 2010 20:41:45 +0000 (13:41 -0700)]
gallivm: Comment lp_build_insert_new_block().

13 years agor600g: set tiling bits in hw state
Dave Airlie [Fri, 8 Oct 2010 01:57:04 +0000 (11:57 +1000)]
r600g: set tiling bits in hw state

13 years agor600g: get tiling info from kernel
Dave Airlie [Fri, 8 Oct 2010 01:56:43 +0000 (11:56 +1000)]
r600g: get tiling info from kernel

13 years agor600g: add defines for tiling
Dave Airlie [Fri, 8 Oct 2010 01:56:12 +0000 (11:56 +1000)]
r600g: add defines for tiling

13 years agor600g: switch to a common formats.h file since they are in different regs
Dave Airlie [Wed, 6 Oct 2010 02:49:26 +0000 (12:49 +1000)]
r600g: switch to a common formats.h file since they are in different regs

13 years agollvmpipe: Return non-zero exit code for lp_test_round failures.
Vinson Lee [Sun, 17 Oct 2010 21:09:53 +0000 (14:09 -0700)]
llvmpipe: Return non-zero exit code for lp_test_round failures.

13 years agollvmpipe: Initialize bld ctx via lp_build_context_init instead of ad-hoc and broken...
José Fonseca [Sun, 17 Oct 2010 17:15:15 +0000 (10:15 -0700)]
llvmpipe: Initialize bld ctx via lp_build_context_init instead of ad-hoc and broken code.

13 years agollvmpipe: Fix bad refactoring.
José Fonseca [Sun, 17 Oct 2010 16:58:04 +0000 (09:58 -0700)]
llvmpipe: Fix bad refactoring.

'i' and 'chan' have random values here, which could cause a buffer
overflow in debug builds, if chan > 4.

13 years agogallivm: Fix SoA cubemap derivative computation.
José Fonseca [Sun, 17 Oct 2010 16:32:41 +0000 (09:32 -0700)]
gallivm: Fix SoA cubemap derivative computation.

Derivatives are now scalar.

Broken since 17dbd41cf23e7e7de2f27e5e9252d7f792d932f3.

13 years agollvmpipe: Ensure z_shift and z_width is initialized.
José Fonseca [Sun, 17 Oct 2010 14:45:08 +0000 (07:45 -0700)]
llvmpipe: Ensure z_shift and z_width is initialized.

13 years agollvmpipe: Fix depth-stencil regression.
José Fonseca [Sun, 17 Oct 2010 14:15:58 +0000 (07:15 -0700)]
llvmpipe: Fix depth-stencil regression.

If stencil is enabled then we need to load the z_dst, even if depth
testing is disabled.

This fixes reflect mesa demo.

13 years agor600g: add evergreen ARL support.
Dave Airlie [Sun, 17 Oct 2010 06:45:15 +0000 (16:45 +1000)]
r600g: add evergreen ARL support.

Thanks to Alex Deucher for pointing out the FLT to int conversion is necessary
and writing an initial patch, this brings about 20 piglits, and I think this
is the last piece to make evergreen and r600 equal in terms of features.

13 years agogallivm: use util_snprintf()
Brian Paul [Fri, 15 Oct 2010 23:32:23 +0000 (17:32 -0600)]
gallivm: use util_snprintf()

13 years agost/mesa: update function name, comments
Brian Paul [Fri, 15 Oct 2010 23:24:43 +0000 (17:24 -0600)]
st/mesa: update function name, comments

13 years agost/mesa: use GLuint to avoid problem w/ uint not defined on mingw32
Brian Paul [Fri, 15 Oct 2010 23:18:39 +0000 (17:18 -0600)]
st/mesa: use GLuint to avoid problem w/ uint not defined on mingw32

13 years agost/mesa: reformatting in st_cb_drawpixels.c
Brian Paul [Fri, 15 Oct 2010 23:01:56 +0000 (17:01 -0600)]
st/mesa: reformatting in st_cb_drawpixels.c

13 years agost/mesa: fix regressions in glDrawPixels(GL_STENCIL_INDEX)
Brian Paul [Fri, 15 Oct 2010 22:54:03 +0000 (16:54 -0600)]
st/mesa: fix regressions in glDrawPixels(GL_STENCIL_INDEX)

We need to keep track of three different fragment shaders: Z-only, stencil-
only, and Z+stencil.  Before, we were only keeping track of the first one
we encountered.

13 years agoglsl: add ir_unop_round_even case to silence unhandled enum warning
Brian Paul [Fri, 15 Oct 2010 21:44:01 +0000 (15:44 -0600)]
glsl: add ir_unop_round_even case to silence unhandled enum warning

13 years agogallivm: added lp_build_load_volatile()
Brian Paul [Fri, 15 Oct 2010 17:55:21 +0000 (11:55 -0600)]
gallivm: added lp_build_load_volatile()

There's no LLVM C LLVMBuildLoadVolatile() function so roll our own.
Not used anywhere at this time but can come in handy during debugging.

13 years agogallivm: added lp_build_print_vec4()
Brian Paul [Fri, 15 Oct 2010 14:41:31 +0000 (08:41 -0600)]
gallivm: added lp_build_print_vec4()

13 years agoi965: Set the type of the null register to fix gen6 FS comparisons.
Eric Anholt [Fri, 15 Oct 2010 19:04:52 +0000 (12:04 -0700)]
i965: Set the type of the null register to fix gen6 FS comparisons.

We often use reg_null as the destination when setting up the flag
regs.  However, on gen6 there aren't general implicit conversions to
destination types from src types, so the comparison to produce the
flag regs would be done on the integer result interpreted as a float.
Hilarity ensued.

Fixes 20 piglit cases.

13 years agoi965: Fix indentation after commit 3322fbaf
Ian Romanick [Fri, 15 Oct 2010 17:32:02 +0000 (10:32 -0700)]
i965: Fix indentation after commit 3322fbaf

13 years agolinker: Trivial indention fix
Ian Romanick [Fri, 15 Oct 2010 00:55:17 +0000 (17:55 -0700)]
linker: Trivial indention fix

13 years agotarget-helpers: Remove per target software wrapper check
Jakob Bornecrantz [Fri, 15 Oct 2010 14:46:10 +0000 (15:46 +0100)]
target-helpers: Remove per target software wrapper check

Instead of having a NAME_SOFTWARE check just use the GALLIUM_DRIVER
instead but set the default to native which is the same as not wrapped.

13 years agoegl: Remove unnecessary headers
Jakob Bornecrantz [Fri, 15 Oct 2010 14:58:54 +0000 (15:58 +0100)]
egl: Remove unnecessary headers

13 years agowrapper: Add a way to dewrap a pipe screen without destroying it
Jakob Bornecrantz [Fri, 15 Oct 2010 14:57:55 +0000 (15:57 +0100)]
wrapper: Add a way to dewrap a pipe screen without destroying it

13 years agowrapper: Fix spelling
Jakob Bornecrantz [Fri, 15 Oct 2010 14:38:29 +0000 (15:38 +0100)]
wrapper: Fix spelling

13 years agollvmpipe: Move makefile include to before targets
Jakob Bornecrantz [Tue, 12 Oct 2010 17:41:24 +0000 (18:41 +0100)]
llvmpipe: Move makefile include to before targets

Or plain make inside of the directory wont build libllvmpipe.a

13 years agonv50: apply layout_mask to tile_flags
Xavier Chantry [Fri, 15 Oct 2010 13:53:13 +0000 (15:53 +0200)]
nv50: apply layout_mask to tile_flags

The tile_flags now store more than just nv50 page table entry bits.

13 years agollvmpipe: validate color outputs against key->nr_cbufs
Keith Whitwell [Fri, 15 Oct 2010 12:23:30 +0000 (13:23 +0100)]
llvmpipe: validate color outputs against key->nr_cbufs

13 years agollvmpipe: check shader outputs are non-null before using
Keith Whitwell [Fri, 15 Oct 2010 12:23:05 +0000 (13:23 +0100)]
llvmpipe: check shader outputs are non-null before using

13 years agomesa: Add missing header to shaderobj.h.
Vinson Lee [Fri, 15 Oct 2010 13:12:26 +0000 (06:12 -0700)]
mesa: Add missing header to shaderobj.h.

Include compiler.h for ASSERT symbol.

13 years agollvmpipe: fix non-sse build after recent changes
Keith Whitwell [Fri, 15 Oct 2010 13:11:22 +0000 (14:11 +0100)]
llvmpipe: fix non-sse build after recent changes

13 years agollvmpipe: use aligned loads/stores for plane values
Keith Whitwell [Fri, 15 Oct 2010 12:52:00 +0000 (13:52 +0100)]
llvmpipe: use aligned loads/stores for plane values

13 years agollvmpipe: do plane calculations with intrinsics
Keith Whitwell [Tue, 12 Oct 2010 17:59:15 +0000 (18:59 +0100)]
llvmpipe: do plane calculations with intrinsics

This is a step towards moving this code into the rasterizer.

13 years agogallium: move some intrinsics helpers to u_sse.h
Keith Whitwell [Tue, 12 Oct 2010 17:58:05 +0000 (18:58 +0100)]
gallium: move some intrinsics helpers to u_sse.h

13 years agollvmpipe: don't store plane.ei value in binned data
Keith Whitwell [Fri, 15 Oct 2010 12:04:19 +0000 (13:04 +0100)]
llvmpipe: don't store plane.ei value in binned data

Further reduce the size of a binned triangle.

13 years agollvmpipe: slightly shrink the size of a binned triangle
Keith Whitwell [Fri, 15 Oct 2010 11:23:22 +0000 (12:23 +0100)]
llvmpipe: slightly shrink the size of a binned triangle

13 years agollvmpipe: don't pass frontfacing as a float
Keith Whitwell [Thu, 14 Oct 2010 23:12:19 +0000 (00:12 +0100)]
llvmpipe: don't pass frontfacing as a float

13 years agollvmpipe: reintroduce SET_STATE binner command
Keith Whitwell [Thu, 14 Oct 2010 22:28:10 +0000 (23:28 +0100)]
llvmpipe: reintroduce SET_STATE binner command

But bin lazily only into bins which are receiving geometry.

13 years agoglsl: Fix ir validation for bit logic ops
Chad Versace [Wed, 13 Oct 2010 15:29:58 +0000 (08:29 -0700)]
glsl: Fix ir validation for bit logic ops

In ir_validate::visit_leave(), the cases for
    - ir_binop_bit_and
    - ir_binop_bit_xor
    - ir_binop_bit_or
were incorrect. It was incorrectly asserted that both operands must be the
same type, when in fact one may be scalar and the other a vector. It was also
incorrectly asserted that the resultant type was the type of the left operand,
which in fact does not hold when the left operand is a scalar and the right
operand is a vector.

13 years agoglsl: Implement constant expr evaluation for bitwise logic ops
Chad Versace [Sun, 10 Oct 2010 04:27:41 +0000 (21:27 -0700)]
glsl: Implement constant expr evaluation for bitwise logic ops

Implement by adding the following cases to
ir_exporession::constant_expression_value():
    - ir_binop_bit_and
    - ir_binop_bit_or
    - ir_binop_bit_xor

13 years agoglsl: Implement constant expr evaluation for bit-shift ops
Chad Versace [Sun, 10 Oct 2010 03:56:14 +0000 (20:56 -0700)]
glsl: Implement constant expr evaluation for bit-shift ops

Implement by adding the following cases to
ir_expression::constant_expression_value():
    - ir_binop_lshfit
    - ir_binop_rshfit

13 years agoglsl: Implement constant expr evaluation for bitwise-not
Chad Versace [Sat, 9 Oct 2010 00:28:34 +0000 (17:28 -0700)]
glsl: Implement constant expr evaluation for bitwise-not

Implement by adding a case to ir_expression::constant_expression_value()
for ir_unop_bit_not.

13 years agoglsl: Implement ast-to-hir for binary shifts in GLSL 1.30
Chad Versace [Fri, 8 Oct 2010 23:22:28 +0000 (16:22 -0700)]
glsl: Implement ast-to-hir for binary shifts in GLSL 1.30

Implement by adding the following cases to ast_expression::hir():
    - ast_lshift
    - ast_rshift
Also, implement ir validation for the new operators by adding the following
cases to ir_validate::visit_leave():
    - ir_binop_lshift
    - ir_binop_rshift

13 years agoglsl: Change generated file glsl_lexer.cpp
Chad Versace [Fri, 8 Oct 2010 23:12:56 +0000 (16:12 -0700)]
glsl: Change generated file glsl_lexer.cpp

13 years agoglsl: Add lexer rules for << and >> in GLSL 1.30
Chad Versace [Fri, 8 Oct 2010 23:12:24 +0000 (16:12 -0700)]
glsl: Add lexer rules for << and >> in GLSL 1.30

Commit for generated file glsl_lexer.cpp follows this commit.

13 years agor600g: evergreen interpolation support.
Dave Airlie [Thu, 14 Oct 2010 04:40:51 +0000 (14:40 +1000)]
r600g: evergreen interpolation support.

On evergreen, interpolation has moved into the fragment shader,
with the interpolation parmaters being passed via GPRs and LDS entries.

This works out the number of interps required and reserves GPR/LDS
storage for them, it also correctly routes face/position values which
aren't interpolated from the vertex shader.

Also if we noticed nothing is to be interpolated we always setup perspective
interpolation for one value otherwise the GPU appears to lockup.

This fixes about 15 piglit tests on evergreen.

13 years agotgsi: add scanner support for centroid inputs
Dave Airlie [Thu, 14 Oct 2010 04:40:24 +0000 (14:40 +1000)]
tgsi: add scanner support for centroid inputs

13 years agoglsl: Slightly change the semantic of _LinkedShaders
Ian Romanick [Thu, 14 Oct 2010 20:28:42 +0000 (13:28 -0700)]
glsl: Slightly change the semantic of _LinkedShaders

Previously _LinkedShaders was a compact array of the linked shaders
for each shader stage.  Now it is arranged such that each slot,
indexed by the MESA_SHADER_* defines, refers to a specific shader
stage.  As a result, some slots will be NULL.  This makes things a
little more complex in the linker, but it simplifies things in other
places.

As a side effect _NumLinkedShaders is removed.

NOTE: This may be a candidate for the 7.9 branch.  If there are other
patches that get backported to 7.9 that use _LinkedShader, this patch
should be cherry picked also.

13 years agoi965: Fix texturing on pre-gen5.
Eric Anholt [Fri, 15 Oct 2010 00:01:06 +0000 (17:01 -0700)]
i965: Fix texturing on pre-gen5.

I broke it in 06fd639c519214b6ebcbf29127b6d9ed429f8641 by only testing
2 generations of hardware :(

13 years agollvmpipe: code to dump bytecode to file (disabled)
Brian Paul [Thu, 14 Oct 2010 22:31:54 +0000 (16:31 -0600)]
llvmpipe: code to dump bytecode to file (disabled)

13 years agogallivm: add compile-time option to emit inst addrs and/or line numbers
Brian Paul [Thu, 14 Oct 2010 22:21:32 +0000 (16:21 -0600)]
gallivm: add compile-time option to emit inst addrs and/or line numbers

Disabling address printing is helpful for diffing.

13 years agomesa: remove post-convolution width/height vars
Brian Paul [Thu, 14 Oct 2010 20:03:46 +0000 (14:03 -0600)]
mesa: remove post-convolution width/height vars

These were left-over bits from when convolution was removed.

13 years agoglsl: Refresh autogenerated file builtin_function.cpp.
Kenneth Graunke [Thu, 14 Oct 2010 20:41:29 +0000 (13:41 -0700)]
glsl: Refresh autogenerated file builtin_function.cpp.

13 years agoglsl: Add support for the 1.30 round() built-in.
Kenneth Graunke [Thu, 14 Oct 2010 21:33:30 +0000 (14:33 -0700)]
glsl: Add support for the 1.30 round() built-in.

This implements round() via the ir_unop_round_even opcode, rather than
adding a new opcode.  We may wish to add one in the future, since it
might enable a small performance increase on some hardware, but for now,
this should suffice.

13 years agoi965: Add support for ir_unop_round_even via the RNDE instruction.
Kenneth Graunke [Thu, 14 Oct 2010 21:31:54 +0000 (14:31 -0700)]
i965: Add support for ir_unop_round_even via the RNDE instruction.

13 years agoglsl: Add front-end support for GLSL 1.30's roundEven built-in.
Kenneth Graunke [Thu, 14 Oct 2010 20:40:26 +0000 (13:40 -0700)]
glsl: Add front-end support for GLSL 1.30's roundEven built-in.

Implemented using the op-code introduced in the previous commit.

13 years agoglsl: Add a new ir_unop_round_even opcode for GLSL 1.30's roundEven.
Kenneth Graunke [Thu, 14 Oct 2010 20:37:03 +0000 (13:37 -0700)]
glsl: Add a new ir_unop_round_even opcode for GLSL 1.30's roundEven.

Also, update ir_to_mesa's "1.30 is unsupported" case to "handle" it.

13 years agor300g: clean up warning due to unknown cap.
Dave Airlie [Thu, 14 Oct 2010 22:46:16 +0000 (08:46 +1000)]
r300g: clean up warning due to unknown cap.

13 years agor600g: handle absolute modifier in shader translator
Keith Whitwell [Thu, 14 Oct 2010 16:19:00 +0000 (17:19 +0100)]
r600g: handle absolute modifier in shader translator

This was being classed as unsupported in one place but used in others.
Enabling it seems to work fine.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor600g: emit hardware linewidth
Keith Whitwell [Thu, 14 Oct 2010 15:42:39 +0000 (16:42 +0100)]
r600g: emit hardware linewidth

Tested with demos/pixeltest - line rasterization doesn't seem to be
set up for GL conventions yet, but at least width is respected now.

Signed-off-by: Dave Airlie <airlied@redhat.com>