Vincent Lejeune
5090ce42e4
radeon/llvm: use ceil intrinsic instead of llvm.AMDIL.round.posinf
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-10 22:03:33 +02:00
Vincent Lejeune
9a6bb3f645
radeon/llvm: use floor intrinsic instead of llvm.AMDIL.floor
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-10 22:03:20 +02:00
Vincent Lejeune
bfdf26892c
radeon/llvm: use llvm fabs intrinsic
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-10 22:03:03 +02:00
Vincent Lejeune
8db11bc4ed
radeon/llvm: use llvm intrinsic for flog2
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-10 22:02:45 +02:00
Vincent Lejeune
23e11ac835
radeon/llvm: add support for cos/sin intrinsic
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-10 22:02:28 +02:00
Vincent Lejeune
876b42663c
radeon/llvm: add a pattern for fsqrt
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-10 22:02:13 +02:00
Marek Olšák
87a34131c4
r600g: move SQ_GPR_RESOURCE_MGMT_1 into new config_state
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:17:07 +02:00
Marek Olšák
c5584e93b1
r600g: move DB_SHADER_CONTROL into db_misc_state
...
Also update the register value in more appropriate places
than r600_update_derived_state.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:17:05 +02:00
Marek Olšák
ae25b93245
r600g: emit PS_PARTIAL_FLUSH at the beginning of CS
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:17:03 +02:00
Marek Olšák
ef723613e0
r600g: atomize depth-stencil-alpha state
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:17:01 +02:00
Marek Olšák
711f3bae9d
r600g: atomize rasterizer state
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:58 +02:00
Marek Olšák
9a683d1bd8
r600g: sort variables in r600_context
...
Some variables have been removed from there too.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:55 +02:00
Marek Olšák
30bcc5538f
r600g: initialize SQ_VTX_SEMANTIC_* in the start_cs command buffer
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:49 +02:00
Marek Olšák
18a189188a
r600g: atomize scissor state
...
The workaround for R600 lacking VPORT_SCISSOR_ENABLE has also been simplified.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:45 +02:00
Marek Olšák
ab075de53b
r600g: atomize polygon offset state
...
POLY_OFFSET_DB_FMT_CNTL is moved to the framebuffer state, because it only
depends on the zbuffer format.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:42 +02:00
Marek Olšák
a50edc8ed8
r600g: atomize fetch shader
...
The state object is actually a buffer, it's literally a buffer containing
the shader code.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:38 +02:00
Marek Olšák
8bf7044ec6
r600g: remove the dual_src_blend flag from the shader key
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:35 +02:00
Marek Olšák
faaba52aed
r600g: atomize blend state
...
This is not so trivial, because we disable blending if the dual src
blending is turned on and the number of color outputs is less than 2.
I decided to create 2 command buffers in the blend state object and just
switch between them when needed, because there are other states unrelated
to blending (like the color mask) and those shouldn't be changed
(the old code had it wrong).
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:32 +02:00
Marek Olšák
eb65fefa4b
r600g: inline r600_atom_dirty
...
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:28 +02:00
Marek Olšák
d8ea64697b
r600g: remove the "atom" variable from r600_command_buffer
...
r600_command_buffer is not an atom.
The "atoms" have evolved into state slots (or groups of state slots) where
you can bind states. There is a fixed amount of atoms (state slots)
in the context.
The command buffers are nothing like that. They represent states, not state
slots.
We could probably give r600_atom a better name someday.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
2012-10-10 00:16:25 +02:00
Vincent Lejeune
11e08f42e4
r600g: use a select to handle front/back color in llvm
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-09 23:19:09 +02:00
Vincent Lejeune
80663cb185
r600g: frontcolor tracks its associated backcolor
...
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2012-10-09 23:19:09 +02:00
Matt Turner
900cc7cf80
Remove VAAPI support.
...
Not working and unmaintained.
Reviewed-by: Christian König <christian.koenig@amd.com>
2012-10-09 14:00:05 -07:00
Marcin Slusarz
63a15117a5
nv50: fix build after "nv50: fix printf warning"
...
When compiled with C++ compiler, inttypes.h defines PRI* macros only when
__STDC_FORMAT_MACROS is defined.
2012-10-09 22:42:54 +02:00
Marcin Slusarz
93eba26935
nouveau: use pre-calculated stride for resource_get_handle
...
Fixes FDO#55294.
NOTE: This is a candidate for the 9.0 branch.
2012-10-09 22:23:09 +02:00
Tom Stellard
45288cd2b6
r600g: Fix build with --enable-opencl
2012-10-09 19:54:12 +00:00
Marek Olšák
30ebc8650c
nv50: fix printf warning
2012-10-09 14:38:43 +02:00
Marek Olšák
51872e8bb3
nv30: fix type conversion warning
2012-10-09 14:34:27 +02:00
Marek Olšák
cf9081b37c
i915g: fix unused variable and type conversion warnings
2012-10-09 14:33:16 +02:00
Ben Skeggs
63c3a799ae
nv50: point vertex runout at a valid address
...
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-10-09 09:56:36 +10:00
Ben Skeggs
c47a01c29c
nvc0: point vertex runout at a valid address
...
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-10-09 09:56:34 +10:00
Ben Skeggs
d53bbabe61
nvc0: fix missing permanent bo reference on poly cache
...
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-10-09 09:56:12 +10:00
Marek Olšák
fd3219962d
softpipe: initialize quadColor2 to fix compile warnings
2012-10-09 01:14:24 +02:00
Marek Olšák
d0349c91c8
r600g: remove unused variables to fix compile warnings
2012-10-09 01:11:56 +02:00
Marek Olšák
d284613422
llvmpipe: remove unused variables to fix compile warnings
2012-10-09 01:10:58 +02:00
Stéphane Marchesin
437a2560b1
i915g: Don't clobber I915_NEW_FS on new framebuffer.
...
This snuck in with a previous commit.
2012-10-08 12:30:46 -07:00
José Fonseca
88e417d761
st/wgl: Don't cache HDC anywhere.
...
Applications may destroy HDC at any time. So always get a HDC as needed.
Fixes lack of presents with Solidworks eDrawings when screen resolution is
changed.
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-08 15:42:50 +01:00
Stéphane Marchesin
6ef37f71b0
i915g: Call draw_set_mapped_vertex_buffer from draw_vbo
...
This regressed with the draw rework. Fixes glest and vdrift crash.
2012-10-06 13:15:04 -07:00
Marek Olšák
9dfca930d7
r600g: fix possible issue with stencil mipmap rendering
...
Somehow I only hit this issue with my latest libdrm changes.
This won't be needed with DB texturing.
NOTE: This is a candidate for the 9.0 branch.
2012-10-06 05:31:01 +02:00
Marek Olšák
6fa22b840e
r600g: ensure PERFECT_ZPASS+NOOP_CULL_DISABLE are 0 for blits+decompression
...
When an occlusion query was active, the derived DB state wasn't changed
for u_blitter even though all the occlusion queries were suspended.
It's fixed by moving the state update into the emit functions, which are
called whenever queries are stopped or suspended.
2012-10-06 04:31:16 +02:00
Marek Olšák
6db53ca490
r600g: don't modify pipe_resource in resource_copy_region, fixing race condition
...
pipe_resource can be shared between contexts, we shouldn't modify its
description. Instead, let's use the resource "views" (sampler views and
surfaces), where we can freely change almost any property of a resource.
2012-10-06 04:31:16 +02:00
Marek Olšák
d063c7b142
r600g: fix streamout on RS780 and RS880
...
The latest kernel from git is required. Transform feedback (along with GL3.0)
is turned off on older kernels.
2012-10-06 03:49:29 +02:00
Marek Olšák
588263e7a7
gallium: allow debug helpers in the release build
...
No idea why this is #ifdef'd. Trace and Noop are definitely useful no matter
how Mesa is built.
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-06 03:34:40 +02:00
Stéphane Marchesin
74b6ea49df
i915g: Get rid of the fixup state functions.
...
Now that the saved_* state is gone, we don't need those any longer.
2012-10-05 12:45:02 -07:00
Stéphane Marchesin
dca9e3c477
i915g: Remove the i915_context->saved_* stuff.
...
When using u_blitter, the state was being saved from saved_*, but we
don't use that. So after u_blitter resumed we got some corrupted
state in.
So let's just remove the saved_* stuff. I thought it was weird but
harmless, it's actually broken.
2012-10-05 12:45:01 -07:00
Stéphane Marchesin
98600c5ff6
i915g: Don't update I915_HW_PROGRAM in update_framebuffer
...
It's already going to be updated in update_dst_buf_vars.
2012-10-05 12:45:00 -07:00
Stéphane Marchesin
762ac0a218
Revert "i915g: Don't bind 0-length programs"
...
This reverts commit 8c28a9bd73 .
2012-10-05 12:44:58 -07:00
Stéphane Marchesin
8c28a9bd73
i915g: Don't bind 0-length programs
...
Since we started doing fixups for different render target formats,
this has been an issue. Instead just don't do anything, when the
program gets emitted later it'll get the correct fixup.
Fixes a bunch of piglit tests.
2012-10-04 12:39:06 -07:00
Stéphane Marchesin
fe3aeb7ea3
i915g: Implement srgb textures the easy way.
...
Since the hw can do it, let's use the hw. It's less accurate
but doesn't have the shader instruction count shortcomings.
2012-10-02 17:54:50 -07:00
Stéphane Marchesin
2acc719374
i915g: Use X tiling for textures
...
This is what the classic driver does, and it allows faster
texture uploads.
2012-10-02 17:54:48 -07:00