Marek Olšák
f9a498d1bc
radeonsi: fix build failure after blitter changes
2012-08-04 16:34:24 +02:00
Marek Olšák
cb922b63eb
r600g: precompute color buffer state in pipe_surface and reuse it
2012-08-04 14:05:52 +02:00
Marek Olšák
cdc681c3ad
r600g: precompute depth buffer state in pipe_surface and reuse it
...
This is done on-demand, because we don't know in advance if a zbuffer
will be bound as depth or color.
2012-08-04 14:05:51 +02:00
Marek Olšák
e6dfc8c77b
r600g: simplify create_surface
2012-08-04 14:05:51 +02:00
Marek Olšák
581f7e3101
r600g: drop the old texture allocation code
...
Made obsolete by the libdrm surface allocator.
2012-08-04 14:05:51 +02:00
Marek Olšák
7c371f4695
r600g: make sure copying of all texture formats is accelerated
2012-08-04 14:05:51 +02:00
Marek Olšák
84645fa613
gallium/u_blitter: add a query for checking whether copying is supported
...
v2: add comments
2012-08-04 14:05:37 +02:00
Marek Olšák
e2f623f1d6
r600g: don't decompress depth or stencil if there isn't any
2012-08-04 13:53:07 +02:00
Marek Olšák
ea72351a91
r600g: correct texture memory size for Z32F_S8X24 on evergreen
2012-08-04 13:53:07 +02:00
Marek Olšák
c8ff737a18
gallium/u_blitter: remove fallback for stencil copy that all drivers skipped
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
ef1bf6d69e
gallium/u_blitter: add ability to blit only depth or only stencil
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
8842678047
gallium: define PIPE_MASK_RGBAZS
...
I need this and it seems like it could be useful.
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
8aaf6972d1
gallium/u_blitter: minor cleanup
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
67a3e5bc32
gallium/tgsi: fixup texture name strings
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
6c420b1668
gallium/u_blitter: set sample mask to ~0
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
9d1ef354f9
gallium/u_blit: bail out if src is a multisample texture
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
6b3f1ae12b
gallium/u_blit: check nr_samples before using resource_copy_region
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:07 +02:00
Marek Olšák
e7689303a8
gallium: set sample mask to ~0 for clear, blit and gen_mipmap
...
The sample mask affects single-sampled rendering too (it's orthogonal
to the color mask).
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-04 13:53:06 +02:00
Dave Airlie
cd97a5f660
r600g: fix F2U opcode translation
...
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2012-08-04 13:45:27 +02:00
Vinson Lee
5bce0b5175
draw: Ensure channel in convert_to_soa is initialized.
...
Fixes uninitialized pointer read defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-03 22:28:31 -07:00
Vinson Lee
9d36b3abfd
u_blitter: Move a pointer dereference after null check.
...
Fixes dereference before null check defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
2012-08-03 22:27:13 -07:00
Matt Turner
fb85558ab1
Use C99 NAN and INFINITY macros
2012-08-03 15:02:09 -07:00
Brian Paul
65da837fcf
gallium/tests/trivial: updates for CSO interface changes
2012-08-03 11:58:43 -06:00
Brian Paul
c61d3fe8bd
st/xorg: updates for CSO interface changes
2012-08-03 11:56:36 -06:00
Brian Paul
459dd56897
st/xa: updates for CSO interface changes
2012-08-03 11:56:28 -06:00
Brian Paul
3d1bec5d9a
vega: fix build breakage from cso sampler/view changes
2012-08-03 08:33:23 -06:00
Brian Paul
832706a80b
cso: remove unreachable break statements
2012-08-03 07:16:35 -06:00
Brian Paul
076e5eacf1
cso: 80-column wrapping, remove trailing whitespace, etc
2012-08-03 07:16:35 -06:00
Brian Paul
ea6f035ae9
gallium: consolidate CSO sampler and sampler_view functions
...
Merge the vertex/fragment versions of the cso_set/save/restore_samplers()
functions. Now we pass the shader stage (PIPE_SHADER_x) to the function
to indicate vertex/fragment/geometry samplers. For example:
cso_single_sampler(cso, PIPE_SHADER_FRAGMENT, unit, sampler);
This results in quite a bit of code reduction, fewer CSO functions and
support for geometry shaders.
Reviewed-by: Marek Olšák <maraeo@gmail.com>
2012-08-03 07:16:35 -06:00
Vinson Lee
350f12fb65
st/mesa: Ensure dst in compile_instruction is initialized.
...
Fixes uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-02 21:10:49 -07:00
Tom Stellard
f6ad8b45c2
radeon/llvm: Add $(LLVM_LDFLAGS) to the loader linker flags
2012-08-02 20:12:11 +00:00
Tom Stellard
4a89a20717
radeon/llvm: Add support for more f32 CMP instructions on SI
2012-08-02 20:12:11 +00:00
Tom Stellard
a35eea7868
radeon/llvm: Add support for fneg on SI
2012-08-02 20:12:10 +00:00
Tom Stellard
4104bae063
radeon/llvm: Add support for fp_to_sint on SI
2012-08-02 20:12:10 +00:00
Tom Stellard
f7fcaa07df
radeon/llvm: Remove CMOVLOG DAG node
2012-08-02 20:12:06 +00:00
Tom Stellard
a5ac8ee2c5
radeonsi: Properly initialize si_shader_ctx.radeon_bld
2012-08-02 13:21:30 -04:00
Michel Dänzer
c2bae6b91d
radeonsi: Handle TGSI TXP opcode.
...
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-08-02 18:38:47 +02:00
Michel Dänzer
93b4f1f97e
radeonsi: Handle TGSI DIV opcode.
...
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-08-02 18:38:16 +02:00
Brian Paul
daf4254d07
svga: remove questionable INLINE qualifiers
2012-08-02 09:40:41 -06:00
Brian Paul
421f134028
svga: sort #includes
2012-08-02 09:40:40 -06:00
Brian Paul
81f2f3f65c
svga: add some comments in svga_screen_cache.c
2012-08-02 09:40:40 -06:00
Brian Paul
4b5a5898b1
svga: whitespace, formatting fixes
2012-08-02 09:40:40 -06:00
Brian Paul
bcd8d9713d
svga: remove unneeded 'struct svga_screen' declarations
2012-08-02 09:40:40 -06:00
Brian Paul
8551635242
mesa: fix default_access_mode() result for ES2
...
The GL_OES_mapbuffer extension is supported by OpenGL ES 1 and ES 2 so return
GL_MAP_WRITE_BIT for both ES versions, not just ES 1.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-08-02 09:40:40 -06:00
Brian Paul
3eb2b5c5e4
mesa: default_access_mode() returns a GLbitfield, not GLenum
2012-08-02 09:40:40 -06:00
José Fonseca
4bd36956f8
scons: set YACCHXXFILESUFFIX to stop needless rebuilding of the parser
...
Before, the GLSL parser was getting rebuilt every time that scons was
run. The problem was scons was expecting a glsl_parser.hpp file but
we were generating a glsl_parser.h file.
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-08-02 09:40:40 -06:00
Christian König
41625afa2f
radeonsi: initial VDPAU target
...
Windowed speed is of course way to slow, but fullscreen
works like a charm now.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2012-08-02 15:15:23 +02:00
Christian König
a3c6607be1
radeon/llvm: fix fp immediates on SI
...
I don't know if this is a good idea, but it
fixes the problem at hand.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-08-02 15:15:00 +02:00
Christian König
250b7fdd26
radeonsi: fix TEX writemask
...
Using the writemask in the sampler results in packet
VGPRS. For now just sample all components and let
llvm chose the right one.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2012-08-02 12:05:33 +02:00
Christian König
3508815d17
radeonsi: fix shader param and color count
...
Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2012-08-02 11:22:57 +02:00