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
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
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
Tom Stellard
77d2780cbc
radeon/llvm: Use a custom emit function for TGSI_OPCODE_KIL
2012-04-30 16:43:34 -04:00
Sean V Kelley
fd0082c47e
i965: Support Android RGBX8888 format for EGL generated images
...
Enabled MESA_FORMAT_RGBX8888_REV for RGBX. Android software
requires RGBX8888 format to be supported for software rendering.
That requires EGL to be capable of generating images from this
format.
Signed-off-by: Sean V Kelley <sean.v.kelley@linux.intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-30 11:22:46 -07:00
Sean V Kelley
81f95ce13d
egl/android: Add support for RGBX_8888 used in Android native buffers
...
Add new format __DRI_IMAGE_FORMAT_XBGR8888 to __DRI_IMAGE.
HAL_PIXEL_FORMAT_RGBX_8888 now maps to __DRI_IMAGE_FORMAT_XBGR8888.
Signed-off-by: Sean V Kelley <sean.v.kelley@linux.intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-04-30 11:22:46 -07:00
David Herrmann
1de377bd30
egl-fbdev: Fix compile-error by including errno.h
...
We use errno and EINVAL so include errno.h.
This patch introduced this bug:
http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/state_trackers/egl/fbdev/native_fbdev.c?id=b60120608f6ddf4098bc324363197c979ee04cb7
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Cc: Chia-I Wu <olv@lunarg.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Adam Jackson <ajax@redhat.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
2012-04-30 13:27:05 -04:00
Ander Conselvan de Oliveira
249817e928
intel: set dri_format field for all images
...
Only images created with intel_create_image() had the field properly
set. Set it also on intel_dup_image(), intel_create_image_from_name()
and intel_create_image_from_renderbuffer().
2012-04-30 13:18:16 -04:00
Ander Conselvan de Oliveira
fc7d224e29
intel: properly return the image format on intel_query_image
2012-04-30 13:13:34 -04:00
Ander Conselvan de Oliveira
6c84f2992f
gbm: add gbm_bo_get_device() function
2012-04-30 13:09:39 -04:00
Ander Conselvan de Oliveira
55aab92495
gbm: update documentation to reflect current behavior
2012-04-30 13:09:39 -04:00
Ander Conselvan de Oliveira
310d8d189d
gbm: add gbm_bo_get/set_user_data()
...
This allows the user to associate some data to a gbm_bo and get a
callback when the bo is destroyed.
2012-04-30 13:09:39 -04:00
Ander Conselvan de Oliveira
f641c57cfa
gbm: remove unused fields from gbm_dri_surface
2012-04-30 13:09:39 -04:00
Brian Paul
a53394ba66
svga: add cases for recently added PIPE_CAP queries
2012-04-30 10:38:05 -06:00
Dylan Noblesmith
18bb6852b2
mesa: reject immutable textures in glEGLImageTargetTexture2DOES()
...
GL_ARB_texture_storage says:
The commands eglBindTexImage, wglBindTexImageARB, glXBindTexImageEXT or
EGLImageTargetTexture2DOES are not permitted on an immutable-format
texture.
They will generate the following errors:
- EGLImageTargetTexture2DOES: INVALID_OPERATION
- eglBindTexImage: EGL_BAD_MATCH
- wglBindTexImage: ERROR_INVALID_OPERATION
- glXBindTexImageEXT: BadMatch
Fixing the EGL and GLX cases requires extending the DRI interface,
since setTexBuffer2 doesn't currently return any error information.
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-04-30 14:52:47 +00:00
José Fonseca
4c23acb269
scons: Fix build without llvm.
...
radeonsi depends on llvm, so it must be disabled if llvm support is not enabled.
2012-04-30 07:47:01 +01:00
José Fonseca
4c15a77f27
scons: Parse = operator in source lists too.
...
Should fix the scons build.
2012-04-29 21:44:05 +01:00
Christoph Bumiller
b328949a37
nv50,nvc0: fix depth/stencil resolve
...
Cannot sample depth/stencil with a single view, and needed to use
different shader code for nve4.
2012-04-29 18:03:18 +02:00
Christoph Bumiller
d46f969b84
nvc0/ir/opt: INTERP does not support JOIN
2012-04-29 18:03:15 +02:00
Christoph Bumiller
1f4c154f02
nv50/ir/opt: try to convert ABS(SUB) to SAD
2012-04-29 18:03:11 +02:00
Christoph Bumiller
d6ab3106cf
nvc0/ir: try to use the optimal texture op mode
...
Don't really know what they are yet but for groups of textures, the
last one should use mode "p" and the others "t".
2012-04-29 18:02:37 +02:00
Christoph Bumiller
afcd7b5d16
nvc0/ir: initial implementation of nve4 scheduling hints
2012-04-29 17:59:06 +02:00
Christoph Bumiller
00fe442253
nvc0/ir: implement better placement of texture barriers
...
Put them before first uses instead of right after the texturing
instruction and cull unnecessary barriers.
2012-04-29 17:56:57 +02:00
Christoph Bumiller
163b290f88
nv50/ir/tgsi: fix handling of early RET
...
We have to actually emit RET, too, of course, not just the PRERET.
2012-04-29 17:55:36 +02:00
Christoph Bumiller
d9baa004ea
nvc0/ir/emit: fix emitTXQ 2nd src
2012-04-29 17:55:13 +02:00
Christoph Bumiller
3a9f036e00
nvc0/ir/target: integer ADD doesn't support ABS modifier
2012-04-29 17:54:34 +02:00
Marek Olšák
18bcb962bb
u_vbuf: unbind vertex buffers on destroy
2012-04-29 17:41:37 +02:00
Marek Olšák
7622496d7b
u_blitter: fix resource leak
2012-04-29 17:31:27 +02:00
Marek Olšák
63ca2eda13
radeonsi: make r600_buffer_transfer_unmap a no-op
...
It's a no-op already in the winsys.
2012-04-29 14:48:45 +02:00
Marek Olšák
c69248fa3f
r600g: make r600_buffer_transfer_unmap a no-op
...
It's a no-op already in the winsys.
2012-04-29 14:48:45 +02:00
Marek Olšák
498e71c156
r300g: make r300_buffer_transfer_unmap a no-op
...
It's a no-op already in the winsys.
2012-04-29 14:48:45 +02:00
Marek Olšák
a784d86508
r300g: use u_default_transfer_inline_write
2012-04-29 14:48:45 +02:00
Marek Olšák
2ed1cdb2a5
radeonsi: use u_default_transfer_inline_write
2012-04-29 14:48:45 +02:00