Tom Stellard
b4789860c4
r600g/llvm: Mask write of pred_inst in llvm_if()
2012-05-03 09:20:24 -04:00
Tom Stellard
9e522bd201
r600g/llvm: Lower ULT A, B, C to SETGT_UINT A, C, B
2012-05-03 09:20:23 -04:00
Tom Stellard
a2e08a40f5
r600g: Print integer values of literal constants in shader dumps
2012-05-03 09:20:23 -04:00
Tom Stellard
18617d7423
r600g: Add support for reading BREAK_LOGICALZ_i32 from bytestream
2012-05-03 09:20:23 -04:00
Tom Stellard
ddb4dac133
r600g/llvm: Don't duplicate R600 intrinsics installed by LLVM
...
At this point, in order for OpenCL to work correctly with r600g, OpenCL
specific intrinsics need to be defined in the LLVM tree. So, we need
to check for these intrinsics in the LLVM include directory to make sure
not to re-define them.
2012-05-03 09:20:17 -04:00
Tom Stellard
1bd3dafeca
r600g: Fix the evergreen offset/end register definitions
2012-05-02 15:59:57 -04:00
Dylan Noblesmith
d5a10dba64
glsl: report errors via GL_ARB_debug_output
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-02 16:12:23 +00:00
Dylan Noblesmith
8c99906cf5
glsl: add gl_context member
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-02 16:12:22 +00:00
Dylan Noblesmith
58fee81c78
mesa: add _mesa_shader_debug()
...
This should be the one entrypoint libglsl needs
for GL_ARB_debug_output.
v2: added comments.
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-02 16:12:22 +00:00
Dylan Noblesmith
48e8a010ae
glsl: consolidate error/warning code
...
And lay the groundwork for GL_ARB_debug_output.
v2: Add descriptive comments.
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-02 16:12:22 +00:00
Tom Stellard
c8fb30abf1
radeon/llvm: Fix MachineInstr dump
2012-05-02 11:53:13 -04:00
Adam Rak
4731f1f52d
r600g: fixed the bug with VTX fetches in TEX clauses for evergreen
...
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
2012-05-02 09:39:10 -04:00
Tom Stellard
d0f6274489
winsys/radeon: Get max_pipes from the kernel
...
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
2012-05-02 09:39:10 -04:00
Tom Stellard
e42df8e10a
r600g: Add support for reading vertex fetches from bytestream
...
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
2012-05-02 09:39:09 -04:00
Tom Stellard
6f50f939ef
r600g: Add support for reading native instructions from the LLVM bytestream
...
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
2012-05-02 09:39:09 -04:00
Tom Stellard
94a6a36379
r600g: Add FC_NATIVE instruction
...
This is a pseudo instruction that enables the LLVM backend to encode
instructions and pass it through r600_bytecode_build()
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
2012-05-02 09:39:09 -04:00
Dave Airlie
4a26454e97
r600g: bypass alpha for integer types (v2)
...
This moves the alpha test control to derived state and disables alpha
testing for integer fbs.
fbo-blending test in piglit gets further when we do this (not a pass
but less fail).
v2: drop the fb_sx_alpha_test_control
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-02 12:06:22 +01:00
José Fonseca
494619ebac
gallivm: Use debug_printf in lp_build_printf.
...
So that its output can be seen on GUI window apps.
Tested-by: James Benton <jbenton@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2012-05-02 10:24:34 +01:00
José Fonseca
9ad2cb1885
gallivm: Avoid LLVMAddGlobalMapping() in lp_bld_assert().
...
Brittle, complex, and unecesary. Just use function pointer constant.
2012-05-02 10:24:34 +01:00
José Fonseca
6cd76b800b
gallivm: Add a lp_build_const_func_pointer() helper.
...
To be reused in all places where we want to call C code.
2012-05-02 10:24:34 +01:00
José Fonseca
0005bd9da2
gallivm: Cleanup/simplify lp_build_const_string_variable.
...
- Move to lp_bld_const where it belongs
- Rename to lp_build_const_string
- take the length from the argument (and don't count the zero terminator twice)
- bitcast the constant to generic i8 *
2012-05-02 10:24:34 +01:00
James Benton
c23fd547c0
gallivm: Added lp_build_const_mask_aos_swizzled
...
Allows the creation of const aos masks which have the mask swizzled
to match the correct format.
Updated existing mask creation code to use the swizzled version where
necessary (tgsi register masks and llvmpipe aos blending).
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-05-02 10:24:34 +01:00
José Fonseca
7d1f414103
gallivm: Move loop var declaration to beginning of scope.
2012-05-02 10:24:33 +01:00
James Benton
f64fe7d333
gallivm: added a debug function which allows llvm to print vectors of 16 unsigned ints
...
This is useful for debugging the linear llvm path as it handles pixels in this format
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-05-02 10:24:33 +01:00
James Benton
16b081f1b0
llvmpipe: add masking support to aos blend
...
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-05-02 10:23:52 +01:00
James Benton
9bc58d941a
llvmpipe: Check when a shader does not satisfy 0 < imm < 1.
...
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-05-02 10:23:21 +01:00
James Benton
c426e63aa0
gallivm: fixed memory leak in lp_build_tgsi_aos
...
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-02 10:13:00 +01:00
James Benton
0b0f4628d6
llvmpipe: Added support for color masks in AoS blending.
...
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-05-02 10:12:48 +01:00
James Benton
85d09d1c61
gallivm: added aligned pointer get/set
2012-05-02 10:12:48 +01:00
James Benton
630fa26886
gallivm: llvm c-style for loops, allows us to create loops with conditions on entry, rather than condition check on loop
2012-05-02 10:12:48 +01:00
Viktor Novotný
83a02427e5
dri/nv10-nv20: Add support for S3TC
...
Signed-off-by: Viktor Novotný <noviktor@seznam.cz>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2012-05-02 03:14:29 +02:00
Viktor Novotný
6d5efe96ee
dri/nouveau: Add general support for compressed formats.
...
Signed-off-by: Viktor Novotný <noviktor@seznam.cz>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2012-05-02 03:13:42 +02:00
Kenneth Graunke
b389b608d8
glsl: Remove some completed tasks from the old "TODO" file.
2012-05-01 14:46:43 -07:00
Tom Stellard
d742d812d8
radeon/llvm: Fix build for updated LLVM 3.1 release branch
2012-05-01 16:42:58 -04:00
Brian Paul
07f5dabc01
softpipe: use any_swizzle() helper in sp_tex_sample.c
...
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-05-01 11:42:58 -06:00
Brian Paul
b5e44c2cfb
softpipe: whitespace, comment clean-ups in sp_tex_sample.c
...
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-05-01 11:42:58 -06:00
Brian Paul
92d899303a
softpipe: implement coord clamping for texel fetches (TXF)
...
The GL spec says out of bounds fetches produce undefined results.
Use clamping to avoid failed assertions or crashes.
Fixes failed assertion in https://bugs.freedesktop.org/show_bug.cgi?id=49125
but the test still fails.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2012-05-01 11:42:58 -06:00
Brian Paul
7b610d5516
xlib: use _mesa_is_winsys/user_fbo() helpers
...
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-05-01 11:39:34 -06:00
Brian Paul
4433b0302d
intel: use _mesa_is_winsys/user_fbo() helpers
...
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-05-01 11:39:34 -06:00
Brian Paul
264b584294
nouveau: use _mesa_is_winsys/user_fbo() helpers
...
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-05-01 11:39:34 -06:00
Brian Paul
47941bfaea
radeon: use _mesa_is_winsys/user_fbo() helpers
...
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-05-01 11:39:34 -06:00
Tom Stellard
ff10dbf35f
radeon/llvm: Add subtarget feature: DumpCode
...
With this feature enabled, the LLVM backend will dump the MachineIntrs
prior to emitting code. The mesa env variable R600_DUMP_SHADERS will enable
this feature in the backend.
2012-05-01 13:12:27 -04:00
Brian Paul
8dd3e341b3
svga: check for and skip null vertex buffer pointers
...
Fixes regressions with google earth and other things.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-05-01 08:14:23 -06:00
Brian Paul
b5752e16e8
softpipe: cast away const to silence warning
2012-05-01 08:14:19 -06:00
Brian Paul
6e588dff57
svga: cast away const to silence warning
2012-05-01 08:14:19 -06:00
Vinson Lee
2d75a1e25e
glsl: Initialize member variable in ir_copy_propagation_elements_visitor.
...
Fix uninitialized scalar field defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-04-30 22:28:05 -07:00
Marek Olšák
96863baa42
u_vbuf: set user buffer pointer for drivers which support user buffers
...
It's not common to end up in u_vbuf and at the same time support user buffers
in a driver, but such a combination should work.
2012-05-01 00:19:45 +02:00
Dragomir Ivanov
7bf3fe851c
r600g/llvm: Remove unnecessary dynamic casts
...
When the result of dynamic_cast is not checked, it can be replaced with
static_cast
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
2012-04-30 16:43:34 -04:00
Dragomir Ivanov
7ed04fa7d8
r600g/llvm: Add pattern for llvm.AMDGPU.kill v2
...
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
2012-04-30 16:43:34 -04:00
Tom Stellard
4da1fcacf1
r600g/llvm: Fix handling of MASK_WRITE instructions
...
We can't delete MASK_WRITE instructions from the program, because this
will cause instructions being masked by MASK_WRITE to be marked dead and
then deleted in the dce pass.
2012-04-30 16:43:34 -04:00