Christoph Bumiller
dffc2fb4e6
nv50/ir: move expansion of IMUL to later stage and handle memory operands
2012-05-04 18:00:40 +02:00
Christoph Bumiller
02fac29305
nv50: implement stream output
2012-05-04 18:00:07 +02:00
Christoph Bumiller
8a44ecdae8
nv50: enable array textures
2012-05-04 18:00:03 +02:00
Brian Paul
c66dc0ea8e
svga: specify 4-byte aligned vertex elements
...
We haven't found a case where this is needed, but it would be prudent
for some hosts, per Jose.
Reviewed-by: José Fonseca <jfonseca@vmware.com >
2012-05-04 08:12:53 -06:00
Brian Paul
e039fd079b
gallivm: fix comment typo
2012-05-04 08:07:58 -06:00
Brian Paul
a36581ccc0
mesa: do more teximage error checking for generic compressed formats
...
When glTexImage or glCopyTexImage is called with internalFormat being a
generic compressed format (like GL_COMPRESSED_RGB) we need to do the same
error checks as for specific compressed formats. In particular, check if
the texture target is compatible with the format. None of the texture
compression formats we support so far work with GL_TEXTURE_1D, for example.
See also https://bugs.freedesktop.org/show_bug.cgi?id=49124
NOTE: This is a candidate for the 8.0 branch.
2012-05-04 08:07:58 -06:00
Vinson Lee
5cc4b4aaf4
scons: Do not build EGL on Solaris.
...
The current EGL headers do not support Solaris.
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Brian Paul <brianp@vmware.com >
2012-05-03 22:58:35 -07:00
Jeremy Huddleston
51691f0767
darwin: Use ASL for logging
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com >
2012-05-03 10:58:34 -07:00
Jeremy Huddleston
cf5db0a418
darwin: Make reported errors more user-friendly
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com >
2012-05-03 10:58:33 -07:00
Jeremy Huddleston
244dc05214
darwin: Fix an error message
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com >
2012-05-03 10:58:33 -07:00
Robert Hooker
c384c5d4d7
egl_dri2: Fix out of tree builds with the wayland backend enabled
...
Otherwise it fails like so:
CC egl_dri2.lo
In file included from egl_dri2.h:40:0,
from egl_dri2.c:42:
../../../../../../src/egl/wayland/wayland-drm/wayland-drm.h:8:41:
fatal error: wayland-drm-server-protocol.h: No such file or directory
compilation terminated.
2012-05-03 11:45:59 -04:00
Kristian Høgsberg
4fddb2ba21
gbm: Add gbm_bo_write entry point
...
This new gbm entry point allows writing data into a gbm bo. The bo has
to be created with the GBM_BO_USE_WRITE flag, and it's only required to
work for GBM_BO_USE_CURSOR_64X64 bos.
The gbm API is designed to be the glue layer between EGL and KMS, but there
was never a mechanism initialize a buffer suitable for use with KMS
hw cursors. The hw cursor bo is typically not compatible with anything EGL
can render to, and thus there's no way to get data into such a bo.
gbm_bo_write() fills that gap while staying out of the efficient
cpu->gpu pixel transfer business.
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com >
2012-05-03 10:57:32 -04:00
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