Brian Paul
90671fcdda
gallium/softpipe: replace pipe_get_tile_swizzle()
...
The new function, pipe_get_tile_rgba_format(), no longer takes a
swizzle (we weren't actually using it anywhere). Rename it to
indicate that the format is passed explicitly.
2011-01-22 18:33:35 -07:00
Brian Paul
4e2c077879
softpipe: use proper type for format field
2011-01-22 18:33:35 -07:00
Jakob Bornecrantz
8af583f6e8
i915g: Don't (un)map vbuf on each (un)map call
2011-01-21 20:53:29 +01:00
Jakob Bornecrantz
0c3352b6df
i915g: Don't do unnecessary copies of constants
...
Even tho st/mesa use user buffers for constants align buffers
other state trackers doesn't use user buffers.
2011-01-21 20:53:29 +01:00
Jakob Bornecrantz
2e60aa511d
i915g: Don't emit FS constants when VS contants change
2011-01-21 20:53:29 +01:00
Jakob Bornecrantz
7287964f94
i915g: Use slab allocator for transfers
...
Also remove unused i915_transfer struct
2011-01-21 20:53:29 +01:00
Christian König
a40305dcdb
r600g: check if hardware blits are possible bevore enabling tilling
2011-01-21 19:47:24 +01:00
Alex Deucher
4b3789427f
r600g: FLT_TO_INT_FLOOR is trans instruction
...
Add missing evergreen FLT_TO_INT_FLOOR instruction.
2011-01-21 12:41:23 -05:00
Brian Paul
37233f1ee0
softpipe: check for null pointers during context create/destroy
...
See http://bugs.freedesktop.org/show_bug.cgi?id=32309
Apparently, malloc() is failing during context creation. Not
checking for nulls here led to crashes elsewhere.
2011-01-20 13:46:57 -07:00
Henri Verbeet
21148e6a88
softpipe: Bind samplers to views instead of the underlying resource.
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-19 21:47:27 -07:00
Henri Verbeet
54fdc351dd
softpipe: Get rid of the redundant resource parameter to get_sampler_variant().
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-19 21:47:27 -07:00
Brian Paul
7e86d9bd8c
llvmpipe: implement TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS
...
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33284
2011-01-19 18:46:59 -07:00
Christian König
a124490262
r600g: fix segfault if texture operand is a literal
...
This fixes Bug 33262
2011-01-19 23:48:02 +01:00
Christian König
ba700d2ead
r600g: fix reserve_cfile for R700+
...
According to R700 ISA we have only two channels for cfile constants.
This patch makes piglit tests "glsl1-constant array with constant
indexing" happy on RV710.
2011-01-19 00:40:28 +01:00
Brian Paul
42dbc2530b
llvmpipe: make sure binning is active when we begin/end a query
...
This fixes a potential failure when a begin/end_query is the first
thing to happen after flushing the scene.
NOTE: This is a candidate for the 7.10 and 7.9 branches.
2011-01-18 14:02:01 -07:00
Brian Paul
fb7a8dedfa
softpipe: rename some functions for consistency
2011-01-18 14:02:01 -07:00
Henri Verbeet
9e964baaf3
r600g: Kill trailing whitespace.
2011-01-18 20:57:04 +01:00
Henri Verbeet
7e2e8d09f7
r600g: Remove the unused eg_states_inc.h and r600_states_inc.h.
2011-01-18 20:57:04 +01:00
Henri Verbeet
495dec0a2b
r600g: Simplify some r600_bc_add_alu_type() calls to r600_bc_add_alu().
2011-01-18 20:57:04 +01:00
Brian Paul
5b58b8c579
softpipe: added some null pointer checks
...
This shouldn't really be needed but it may help with
http://bugs.freedesktop.org/show_bug.cgi?id=32309
2011-01-18 09:59:28 -07:00
Brian Paul
c97e4532bb
softpipe: s/tex_cache/fragment_tex_cache/
...
Just to be more consistant with the vertex and geometry tex cache fields.
2011-01-18 09:59:28 -07:00
Brian Paul
96a2e89dde
llvmpipe: enable PIPE_CAP_INDEP_BLEND_FUNC
...
The driver was saying that independend blend functions was not supported,
but it really was. The driver was using the per-target independend blend
factors but the state tracker was only setting the 0th one (per the
Gallium spec).
Fixes a piglit fbo-drawbuffers2-blend regression.
See https://bugs.freedesktop.org/show_bug.cgi?id=33215
2011-01-17 16:51:13 -07:00
Dave Airlie
2bf52e7c28
nouveau: fix build against out of tree libdrm
...
For doing builds against a separated libdrm these cflags are needed.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-17 15:42:34 +10:00
Christian König
ef3b8042e0
r600g: fix PIPE_CAP_INSTANCED_DRAWING warning
2011-01-16 23:52:53 +01:00
Christian König
b61afe13f1
r600g: fix alu inst group merging for relative adressing
2011-01-16 21:43:17 +01:00
Christoph Bumiller
a4742c6a07
nvc0: fix and enable instanced drawing and arrays
2011-01-16 14:10:46 +01:00
Christian König
ac6334145e
r600d: fix some bugs added reworking literal handling
...
If a literal slot isn't used it should be set
to 0 instead of an uninitialized value. Also the
channels for pre R700 trig functions were incorrect.
And most important literals were not counted against ndw,
resulting in an invalid force_add_cf detection.
2011-01-16 03:30:25 +01:00
Henri Verbeet
5a2abf7a85
r600g: Fix some register value name typos.
...
SFR -> SRF.
2011-01-15 19:48:43 +01:00
Henri Verbeet
f6f7808028
r600g: Get rid of r600_translate_vertex_data_type().
...
This has been replaced with r600_vertex_data_type().
2011-01-15 19:48:43 +01:00
Brian Paul
652901e95b
Merge branch 'draw-instanced'
...
Conflicts:
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/glsl/ir_set_program_inouts.cpp
src/mesa/tnl/t_vb_program.c
2011-01-15 10:24:08 -07:00
Christoph Bumiller
21001d2ba7
nvc0: try to swap immediates to first source too
2011-01-15 14:14:55 +01:00
Christoph Bumiller
52474d4246
nvc0: make sure all sources of the BIND op are distinct
...
They're supposed to be assigned consecutive registers so they can't
contain the same SSA value more than once.
2011-01-15 14:14:50 +01:00
Christoph Bumiller
1ae982adfd
nvc0: update user vbufs on each draw call
...
This is required in case set_vertex_buffers is not called again.
2011-01-15 12:18:52 +01:00
Christoph Bumiller
b50d02e2e0
nvc0: enable early fragment tests where possible
2011-01-15 12:17:57 +01:00
Christoph Bumiller
5ec66c6e70
nvc0: upload small buffers through the command buffer
2011-01-15 12:17:00 +01:00
Alex Deucher
634dece281
r600g: compiler helper opcode fixes for evergreen
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-14 17:50:49 -05:00
Alex Deucher
9dfc68314d
r600g: pass r600_bc to some addition compiler helper functions
...
needed for asic specific opcodes
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-14 17:50:29 -05:00
Vinson Lee
4c6d6dd8fc
r600g: Disable V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLT_TO_INT_FLOOR case.
...
The usage of macro V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLT_TO_INT_FLOOR was
introduced by commit 323ef3a1f0 but the
macro is undefined. Disable this case to fix the build for now.
2011-01-14 13:47:37 -08:00
Christian König
323ef3a1f0
r600g: add more missing instructions to r600_bc_get_num_operands
2011-01-14 18:46:52 +01:00
Vinson Lee
a2ab929ab2
r600g: Move declaration before code in r600_asm.c.
...
Fixes SCons build.
2011-01-13 14:17:01 -08:00
Christian König
96f8f8db7b
r600g: rework literal handling
2011-01-13 23:01:35 +01:00
Christian König
d7342f6a81
r600g: merge alu groups
2011-01-13 23:01:35 +01:00
Christian König
eea1d8199b
r600g: implement replacing gpr with pv and ps
2011-01-13 23:01:35 +01:00
Christian König
0448f73f06
r600g: add missing RECIPSQRT_CLAMPED to r600_bc_get_num_operands
2011-01-13 21:29:47 +01:00
Christian König
a25b91c2c2
r600g: rework bank swizzle code
2011-01-13 21:22:00 +01:00
Christian König
89275c0b36
r600g: fix alu slot assignment
2011-01-13 19:41:07 +01:00
Christian König
236e99fe05
r600g: optimize away CF ALU instructions even if type doesn't match
2011-01-13 19:41:07 +01:00
Christoph Bumiller
370ae0bd61
nvc0: identify POINT_RASTER_RULES, add POINT_SMOOTH state
...
Point smoothing requires rasterization rules to be set to OGL.
Sorry for the extra noise caused by the header update.
2011-01-13 19:36:25 +01:00
Vinson Lee
eb70e58caf
r600g: Silence uninitialized variable warnings.
2011-01-13 09:07:19 -08:00
Ben Skeggs
bd2b72359e
nvc0: disable calling of sw methods we don't implement
...
Left in the code as a marker of what NVIDIA do, just in case we need
to do this some day.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-01-13 15:26:31 +10:00