Francisco Jerez [Fri, 17 Sep 2010 18:58:43 +0000 (20:58 +0200)]
dri/nouveau: Fix software mipmap generation on 1x1 textures.
Francisco Jerez [Fri, 17 Sep 2010 18:56:48 +0000 (20:56 +0200)]
dri/nv10-nv20: Fix texturing in some cases after a base level change.
Francisco Jerez [Fri, 17 Sep 2010 14:35:49 +0000 (16:35 +0200)]
dri/nouveau: Cleanup more references to old FBOs and VBOs.
Francisco Jerez [Fri, 17 Sep 2010 13:25:03 +0000 (15:25 +0200)]
dri/nouveau: Remove unnecessary assertion.
Francisco Jerez [Fri, 17 Sep 2010 13:03:14 +0000 (15:03 +0200)]
dri/nv04: Use nvgl_wrap_mode().
Jakob Bornecrantz [Tue, 21 Sep 2010 00:16:31 +0000 (02:16 +0200)]
tgsi: Actually care what check_soa_dependencies says
Thanks to José for the more complete list of supported opcodes.
NOTE: This is a candidate for the 7.9 branch.
José Fonseca [Tue, 21 Sep 2010 00:16:19 +0000 (02:16 +0200)]
tgsi: Don't ignore indirect registers in tgsi_check_soa_dependencies
NOTE: This is a candidate for the 7.9 branch.
Timo Wiren [Mon, 20 Sep 2010 22:27:34 +0000 (15:27 -0700)]
Fix typos in comments and debug output strings.
Bug #30208.
Jerome Glisse [Mon, 20 Sep 2010 21:21:37 +0000 (17:21 -0400)]
r600g: add back reference check when mapping buffer
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Jerome Glisse [Mon, 20 Sep 2010 19:35:19 +0000 (15:35 -0400)]
r600g: use pipe context for flushing inside map
This allow to share code path btw old & new, also
remove check on reference this might make things
a little slower but new design doesn't use reference
stuff.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Tilman Sauerbeck [Sun, 19 Sep 2010 17:25:21 +0000 (19:25 +0200)]
python/tests: Fixed tri.py for API and TGSI syntax changes.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Tilman Sauerbeck [Mon, 20 Sep 2010 19:27:59 +0000 (21:27 +0200)]
r600g: Implemented the Z and W component write for the SCS opcode.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Tilman Sauerbeck [Sun, 19 Sep 2010 08:06:34 +0000 (10:06 +0200)]
r600g: Honour destination operand's writemask in the SCS implementation.
If we are not going to write to the X or Y components of the destination
vector we also don't need to prepare to compute SIN or COS.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Luca Barbieri [Mon, 20 Sep 2010 18:49:03 +0000 (20:49 +0200)]
softpipe: fix whitespace
Luca Barbieri [Mon, 20 Sep 2010 17:19:50 +0000 (19:19 +0200)]
tgsi: add switch/case opcodes to tgsi_opcode_tmp.h
Luca Barbieri [Mon, 20 Sep 2010 17:22:44 +0000 (19:22 +0200)]
softpipe: make z/s test always pass if no zsbuf, instead of crashing
D3D10 specifies this.
Luca Barbieri [Mon, 20 Sep 2010 18:13:30 +0000 (20:13 +0200)]
gallium: avoid the C++ keyword "template" in sw_winsys.h
Brian Paul [Mon, 20 Sep 2010 17:21:44 +0000 (11:21 -0600)]
gallivm: remove debug code
Brian Paul [Mon, 20 Sep 2010 16:50:15 +0000 (10:50 -0600)]
llvmpipe: fix query bug when no there's no scene
Marek Olšák [Fri, 17 Sep 2010 00:43:38 +0000 (02:43 +0200)]
st/mesa: fix assertion failure in GetTexImage for cubemaps
Can be reproduced with mesa/demos/src/tests/blitfb.
NOTE: This is a candidate for the 7.9 branch.
Jerome Glisse [Mon, 20 Sep 2010 15:58:00 +0000 (11:58 -0400)]
r600g: move chip class to radeon common structure
So texture code can be shared btw new state design
& old one.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Kenneth Graunke [Sun, 19 Sep 2010 02:51:07 +0000 (04:51 +0200)]
glsl: Fix broken handling of ir_binop_equal and ir_binop_nequal.
When ir_binop_all_equal and ir_binop_any_nequal were introduced, the
meaning of these two opcodes changed to return vectors rather than a
single scalar, but the constant expression handling code was incorrectly
written and only worked for scalars. As a result, only the first
component of the returned vector would be properly initialized.
Kenneth Graunke [Sun, 19 Sep 2010 02:50:28 +0000 (04:50 +0200)]
glsl: Add comments to clarify the types of comparison binops.
Brian Paul [Mon, 20 Sep 2010 14:57:53 +0000 (08:57 -0600)]
docs: mark as obsolete, remove dead links
Brian Paul [Mon, 20 Sep 2010 14:54:04 +0000 (08:54 -0600)]
docs: remove old broken link
Brian Paul [Mon, 20 Sep 2010 14:22:51 +0000 (08:22 -0600)]
glsl2: silence compiler warnings in printf() calls
Such as: "ir_validate.cpp:143: warning: format ‘%p’ expects type ‘void*’,
but argument 2 has type ‘ir_variable*’"
Brian Paul [Mon, 20 Sep 2010 14:19:08 +0000 (08:19 -0600)]
mesa: don't call valid_texture_object() in non-debug builds
This reverts commit
c32bac57ed445e48856d74113364287ed6e5cdd4
and silences the warning differently.
The _mesa_reference_texobj() function is called quite a bit and
we don't want to call valid_texture_object() all the time in non-
debug builds.
Ian Romanick [Sat, 18 Sep 2010 14:08:38 +0000 (16:08 +0200)]
glsl: Add doxygen comments
Jakob Bornecrantz [Mon, 20 Sep 2010 13:25:18 +0000 (15:25 +0200)]
i915g: Link with wrapper sw winsys with scons
Michal Krol [Thu, 16 Sep 2010 16:51:03 +0000 (16:51 +0000)]
svga: Integer constant register file has a separate namespace.
Count int and float constants independently. Since there are only
few i# constants available and hundreds of c# constants, it would
be too easy to end up with an i# declaration out of its range.
Michal Krol [Thu, 16 Sep 2010 16:48:00 +0000 (16:48 +0000)]
svga: Fix relative addressing translation for pixel shaders.
Pixel shaders do not have address registers a#, only one
loop register aL. Our only hope is to assume the address
register is in fact a loop counter and replace it with aL.
Do not translate ARL instruction for pixel shaders -- MOVA
instruction is only valid for vertex saders.
Make it more explicit relative addressing of inputs is only valid
for pixel shaders and constants for vertex shaders.
Corbin Simpson [Mon, 20 Sep 2010 06:02:19 +0000 (23:02 -0700)]
r600g: Cleanup viewport floats.
Corbin Simpson [Mon, 20 Sep 2010 05:54:18 +0000 (22:54 -0700)]
r600g: Clean up PS setup.
I didn't do r600d according to the docs; I split EXPORT_MODE to be a bit more
useful and obvious. Hope this is okay.
Dave Airlie [Mon, 20 Sep 2010 05:39:03 +0000 (15:39 +1000)]
r600g: only flush for the correct colorbuffer, not all of them.
Dave Airlie [Mon, 20 Sep 2010 05:38:40 +0000 (15:38 +1000)]
r600g: add missing BC_INST wrapper for evergreen
Dave Airlie [Mon, 20 Sep 2010 05:36:52 +0000 (15:36 +1000)]
r600g: fixup r700 CB_SHADER_CONTROL register.
r600c emits this with a mask of each written output.
Dave Airlie [Mon, 20 Sep 2010 05:30:52 +0000 (15:30 +1000)]
r600g: fix r700 cube map sizing.
this fixes fbo-cubemap on r700.
Dave Airlie [Mon, 20 Sep 2010 02:21:35 +0000 (12:21 +1000)]
r600g: add color/texture support for more depth formats.
Dave Airlie [Mon, 20 Sep 2010 02:04:52 +0000 (12:04 +1000)]
r600g: add z16 to color setup
Dave Airlie [Mon, 20 Sep 2010 01:39:14 +0000 (11:39 +1000)]
r600g: fix tiling support for ddx supplied buffers
needed to emit some more relocs to the kernel.
Corbin Simpson [Mon, 20 Sep 2010 01:20:05 +0000 (18:20 -0700)]
r600g: "tmp" is such a bad name for a texture.
Corbin Simpson [Mon, 20 Sep 2010 01:14:41 +0000 (18:14 -0700)]
r600g: Fix false and true.
Corbin Simpson [Mon, 20 Sep 2010 01:13:41 +0000 (18:13 -0700)]
r600g: Clean up some indentation and |= vs. | usage.
Corbin Simpson [Mon, 20 Sep 2010 01:04:41 +0000 (18:04 -0700)]
r600g: Deobfuscate and comment a few more functions in r600_hw_states.
Corbin Simpson [Mon, 20 Sep 2010 00:12:26 +0000 (17:12 -0700)]
r600g: Trivially deobfuscate r600_hw_states.
Corbin Simpson [Sun, 19 Sep 2010 23:42:29 +0000 (16:42 -0700)]
r600g: Use align() instead of handrolled code.
Dave Airlie [Mon, 20 Sep 2010 00:45:18 +0000 (10:45 +1000)]
r600g: drop debugging that snuck in
Dave Airlie [Mon, 20 Sep 2010 00:44:44 +0000 (10:44 +1000)]
r600g: clean up valgrind issues on maxtargets test.
Dave Airlie [Mon, 20 Sep 2010 00:34:42 +0000 (10:34 +1000)]
r600g: fix fbo-drawbuffers-maxtargets
we were leaking buffers since the flush code was added, it wasn't dropping references.
move setting up flush to the set_framebuffer_state.
clean up the flush state object.
make more space in the BOs array for flushing.
Dave Airlie [Mon, 20 Sep 2010 00:15:26 +0000 (10:15 +1000)]
r600g: send correct surface base update for multi-cbufs
Dave Airlie [Sun, 19 Sep 2010 23:57:47 +0000 (09:57 +1000)]
r600g: modify index buffers for sizes the hw can't deal with.
this just uses the common code from r300g now in util to do translations on r600g.
Dave Airlie [Thu, 12 Aug 2010 10:20:23 +0000 (20:20 +1000)]
util/r300g: split the r300 index buffer modifier functions out to util
These can be used by other drivers, like r600g.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Henri Verbeet [Sun, 19 Sep 2010 23:29:43 +0000 (09:29 +1000)]
r600g: fix exports_ps to export a number not a mask.
Jakob Bornecrantz [Sun, 19 Sep 2010 20:08:47 +0000 (22:08 +0200)]
scons: Link against talloc in the Gallium DRI drivers
Jakob Bornecrantz [Fri, 10 Sep 2010 02:39:26 +0000 (04:39 +0200)]
rbug: Add function to get opcode name string
Jakob Bornecrantz [Fri, 10 Sep 2010 00:15:11 +0000 (02:15 +0200)]
rbug: Cast opcode to corrent int size
Henri Verbeet [Sun, 19 Sep 2010 20:59:14 +0000 (22:59 +0200)]
Revert "r600g: Flush upload buffers before draws instead of before flushes."
This reverts commit
a1d9a58b825825723f1c5f7705f2ed3ef834038a.
Flushing the upload buffers on draw is wrong, uploads aren't supposed to
cause flushes in the first place. The real issue was
radeon_bo_pb_map_internal() not respecting PB_USAGE_UNSYNCHRONIZED.
Henri Verbeet [Sun, 19 Sep 2010 20:58:42 +0000 (22:58 +0200)]
r600g: Respect PB_USAGE_UNSYNCHRONIZED in radeon_bo_pb_map_internal().
Tilman Sauerbeck [Sun, 19 Sep 2010 07:03:11 +0000 (09:03 +0200)]
gallium/docs: Fixed a typo in the SCS opcode description.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Luca Barbieri [Sun, 19 Sep 2010 19:48:28 +0000 (21:48 +0200)]
auxiliary: fix depth-only and stencil-only clears
Depth-only and stencil-only clears should mask out depth/stencil from the
output, mask out stencil/input from input, and OR or ADD them together.
However, due to a typo they were being ANDed, resulting in zeroing the buffer.
Henri Verbeet [Sun, 19 Sep 2010 17:27:30 +0000 (19:27 +0200)]
r600g: Buffer object maps imply a wait.
Unless e.g. PB_USAGE_DONTBLOCK or PB_USAGE_UNSYNCHRONIZED would be specified.
Henri Verbeet [Sun, 19 Sep 2010 17:27:30 +0000 (19:27 +0200)]
r600g: Remove a redundant flush in r600_texture_transfer_map().
radeon_ws_bo_map() will already take care of that if needed.
Henri Verbeet [Sun, 19 Sep 2010 17:27:30 +0000 (19:27 +0200)]
r600g: Check for other references before checking for existing mappings in radeon_bo_pb_map_internal().
Having a non-NULL data pointer doesn't imply it's safe to reuse that mapping,
it may have been unmapped but not flushed yet.
Henri Verbeet [Sun, 19 Sep 2010 17:27:30 +0000 (19:27 +0200)]
r600g: Flush upload buffers before draws instead of before flushes.
If a upload buffer is used by a previous draw that's still in the CS,
accessing it would need a context flush. However, doing a context flush when
mapping the upload buffer would then flush/destroy the same buffer we're trying
to map there. Flushing the upload buffers before a draw avoids both the CS
flush and the upload buffer going away while it's being used. Note that
u_upload_data() could e.g. use a pool of buffers instead of allocating new
ones all the time if that turns out to be a significant issue.
Chia-I Wu [Sun, 19 Sep 2010 09:31:34 +0000 (17:31 +0800)]
egl: Enable drm platform by default.
This enables EGL_MESA_drm_display for st/egl in the default setup.
Chia-I Wu [Sun, 19 Sep 2010 09:11:07 +0000 (17:11 +0800)]
st/egl: s/kms/drm/ on the drm backend.
s/kms/drm/, s/kdpy/drmdpy/, and so forth.
Chia-I Wu [Sun, 19 Sep 2010 08:54:39 +0000 (16:54 +0800)]
st/egl: Rename kms backend to drm.
The main use of the backend is to support EGL_MESA_drm_display. drm
should be a better name.
Chia-I Wu [Sun, 19 Sep 2010 08:32:06 +0000 (16:32 +0800)]
st/egl: Split modeset code support to modeset.c.
The modeset code supports now obsolete EGL_MESA_screen_surface. Move it
to a file of its own.
Dave Airlie [Sun, 19 Sep 2010 07:25:50 +0000 (17:25 +1000)]
r600g: only emit uses waterfall on r6xx hw.
Dave Airlie [Sun, 19 Sep 2010 07:14:57 +0000 (17:14 +1000)]
r600g; add uses waterfall to asm cf for r6xx.
On r6xx if an MOVA instruction is emitted we should set this bit.
Tilman Sauerbeck [Sat, 18 Sep 2010 14:42:22 +0000 (16:42 +0200)]
r600g: Added support for TGSI_SEMANTIC_FACE.
This makes the 'glsl1-gl_FrontFacing var (1)' piglit test pass.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Vinson Lee [Sun, 19 Sep 2010 06:07:41 +0000 (23:07 -0700)]
nv50: Remove dead initialization.
Vinson Lee [Sun, 19 Sep 2010 06:06:29 +0000 (23:06 -0700)]
nv50: Remove dead initialization.
Vinson Lee [Sat, 18 Sep 2010 22:59:00 +0000 (15:59 -0700)]
nv50: Silence missing initializer warning.
Fixes this GCC warning.
nv50_state_validate.c:336: warning: missing initializer
nv50_state_validate.c:336: error: (near initialization for 'validate_list[20].func')
Christoph Bumiller [Sat, 18 Sep 2010 18:52:44 +0000 (20:52 +0200)]
nv50: fix typo in fifo packet length limit
Kenneth Graunke [Sat, 18 Sep 2010 13:56:28 +0000 (15:56 +0200)]
glsl/builtins: Switch comparison functions to just return an expression.
Kenneth Graunke [Sat, 18 Sep 2010 12:44:18 +0000 (14:44 +0200)]
glsl/builtins: Fix equal and notEqual builtins.
Commit
309cd4115b7cba669a0bf858e7809cb6dae90ddf incorrectly converted
these to all_equal and any_nequal, which is the wrong operation.
Christoph Bumiller [Sat, 18 Sep 2010 13:19:34 +0000 (15:19 +0200)]
nv50: emit constbuf relocs before uploading constants
Christoph Bumiller [Sat, 18 Sep 2010 11:40:10 +0000 (13:40 +0200)]
nv50: add relocs for stack and local mem buffers
Kenneth Graunke [Sat, 18 Sep 2010 09:11:09 +0000 (11:11 +0200)]
glsl: Properly handle nested structure types.
Fixes piglit test CorrectFull.frag.
Vinson Lee [Sat, 18 Sep 2010 07:59:16 +0000 (00:59 -0700)]
r600g: Remove unused variable.
Vinson Lee [Sat, 18 Sep 2010 07:51:07 +0000 (00:51 -0700)]
nvfx: Silence uninitialized variable warnings.
Vinson Lee [Sat, 18 Sep 2010 07:47:36 +0000 (00:47 -0700)]
nvfx: Remove const qualifer from nvfx_vertprog_translate.
Silences this GCC warning.
nvfx_vertprog.c: In function 'nvfx_vertprog_translate':
nvfx_vertprog.c:998: warning: assignment discards qualifiers from pointer target type
Tilman Sauerbeck [Fri, 17 Sep 2010 23:56:34 +0000 (01:56 +0200)]
glsl2: Fixed cloning of ir_call error instructions.
Those have the callee field set to the null pointer, so
calling the public constructor will segfault.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Vinson Lee [Sat, 18 Sep 2010 07:14:20 +0000 (00:14 -0700)]
glsl: Fix 'control reaches end of non-void function' warning.
Fixes this GCC warning.
lower_variable_index_to_cond_assign.cpp:
In member function
'bool variable_index_to_cond_assign_visitor::needs_lowering(ir_dereference_array*) const':
lower_variable_index_to_cond_assign.cpp:261:
warning: control reaches end of non-void function
Vinson Lee [Sat, 18 Sep 2010 06:59:23 +0000 (23:59 -0700)]
x86: Silence unused variable warning on Mac OS X.
Silences the following GCC warning on Mac OS X.
x86/common_x86.c:58: warning: 'detection_debug' defined but not used
Vinson Lee [Sat, 18 Sep 2010 06:43:38 +0000 (23:43 -0700)]
mesa: Silence "'valid_texture_object' defined but not used" warning.
Vinson Lee [Sat, 18 Sep 2010 06:35:09 +0000 (23:35 -0700)]
ir_to_mesa: Remove unused member array_indexed from struct statevar_element.
Fixes this GCC warning.
warning: missing initializer for member 'statevar_element::array_indexed'
Vinson Lee [Sat, 18 Sep 2010 00:52:13 +0000 (17:52 -0700)]
mesa: bump version to 7.10
Tilman Sauerbeck [Fri, 17 Sep 2010 16:50:07 +0000 (18:50 +0200)]
glsl2: Empty functions can be inlined.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Vinson Lee [Fri, 17 Sep 2010 21:27:39 +0000 (14:27 -0700)]
r600g: Silence unused variable warnings.
The variables are used in code that is currently ifdef'ed out.
Vinson Lee [Fri, 17 Sep 2010 21:21:32 +0000 (14:21 -0700)]
r600g: Silence uninitialized variable warning.
Vinson Lee [Fri, 17 Sep 2010 21:17:26 +0000 (14:17 -0700)]
r600g: Fix memory leak on error path.
Vinson Lee [Fri, 17 Sep 2010 21:06:23 +0000 (14:06 -0700)]
r600g: Fix implicit declaration warning.
Fixes this GCC warning.
r600_state2.c: In function 'r600_context_flush':
r600_state2.c:946: error: implicit declaration of function 'drmCommandWriteRead'
Vinson Lee [Fri, 17 Sep 2010 19:40:54 +0000 (12:40 -0700)]
r600g: Remove unnecessary headers.
Vinson Lee [Fri, 17 Sep 2010 19:38:29 +0000 (12:38 -0700)]
r600g: Remove unnecessary header.
José Fonseca [Thu, 16 Sep 2010 19:27:13 +0000 (20:27 +0100)]
llvmpipe: Default to no threading on single processor systems.
José Fonseca [Fri, 17 Sep 2010 10:13:37 +0000 (11:13 +0100)]
util: linearized sRGB values don't fit into 8bits
Fixes glean texture_srgb test.
Brian Paul [Fri, 17 Sep 2010 18:16:02 +0000 (12:16 -0600)]
gallivm: added missing case for PIPE_TEXTURE_RECT
Fixes fd.o bug 30245
Jerome Glisse [Fri, 17 Sep 2010 14:41:50 +0000 (10:41 -0400)]
r600g: alternative command stream building from context
Winsys context build a list of register block a register block is
a set of consecutive register that will be emited together in the
same pm4 packet (the various r600_block* are there to provide basic
grouping that try to take advantage of states that are linked together)
Some consecutive register are emited each in a different block,
for instance the various cb[0-7]_base. At winsys context creation,
the list of block is created & an index into the list of block. So
to find into which block a register is in you simply use the register
offset and lookup the block index. Block are grouped together into
group which are the various pkt3 group of config, context, resource,
Pipe state build a list of register each state want to modify,
beside register value it also give a register mask so only subpart
of a register can be updated by a given pipe state (the oring is
in the winsys) There is no prebuild register list or define for
each pipe state. Once pipe state are built they are bound to
the winsys context.
Each of this functions will go through the list of register and
will find into which block each reg falls and will update the
value of the block with proper masking (vs/ps resource/constant
are specialized variant with somewhat limited capabilities).
Each block modified by r600_context_pipe_state_set* is marked as
dirty and we update a count of dwords needed to emit all dirty
state so far.
r600_context_pipe_state_set* should be call only when pipe context
change some of the state (thus when pipe bind state or set state)
Then to draw primitive you make a call to r600_context_draw
void r600_context_draw(struct r600_context *ctx, struct r600_draw *draw)
It will check if there is enough dwords in current cs buffer and
if not will flush. Once there is enough room it will copy packet
from dirty block and then add the draw packet3 to initiate the draw.
The flush will send the current cs, reset the count of dwords to
0 and remark all states that are enabled as dirty and recompute
the number of dwords needed to send the current context.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>