OSDN Git Service

android-x86/external-mesa.git
15 years agoNouveau: fix nv20_vertex_layout()
Pekka Paalanen [Sat, 8 Nov 2008 22:58:19 +0000 (00:58 +0200)]
Nouveau: fix nv20_vertex_layout()

The function should update nv20->vertex_info, and not just a
local struct that's thrown away immediately.

Fixes a SIGFPE due to vbuf->vertex_size = 0 in vbuf_alloc_vertices().

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agoNouveau: update nv20 miptree according to nv40.
Pekka Paalanen [Sat, 8 Nov 2008 17:07:04 +0000 (19:07 +0200)]
Nouveau: update nv20 miptree according to nv40.

glxinfo doesn't degfault anymore.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agoNouveau: build, link and use nv20.
Pekka Paalanen [Sat, 8 Nov 2008 16:32:33 +0000 (18:32 +0200)]
Nouveau: build, link and use nv20.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agoNouveau: name replace for nv20.
Pekka Paalanen [Sat, 8 Nov 2008 16:04:33 +0000 (18:04 +0200)]
Nouveau: name replace for nv20.

No functional changes, only changed function, struct, macro etc. names.
nv10 -> nv20
nv30 -> nv20
celsius -> kelvin
Did not touch fifo command macros.

Don't try to build nv20_vertprog.c for now.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agoNouveau: Rename nv20/ files as nv20.
Pekka Paalanen [Sat, 8 Nov 2008 15:20:19 +0000 (17:20 +0200)]
Nouveau: Rename nv20/ files as nv20.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agoNouveau: copy nv30_vertprog.c to nv20.
Pekka Paalanen [Sat, 8 Nov 2008 15:09:16 +0000 (17:09 +0200)]
Nouveau: copy nv30_vertprog.c to nv20.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agoNouveau: start nv20 by copying the nv10 tree.
Pekka Paalanen [Sat, 8 Nov 2008 15:04:45 +0000 (17:04 +0200)]
Nouveau: start nv20 by copying the nv10 tree.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agog3dvl: Get rid of state tracker unit tests, stale and not useful atm.
Younes Manton [Fri, 17 Oct 2008 21:20:03 +0000 (17:20 -0400)]
g3dvl: Get rid of state tracker unit tests, stale and not useful atm.

15 years agog3dvl: Bad test, use proper picture height.
Younes Manton [Sat, 4 Oct 2008 19:38:12 +0000 (15:38 -0400)]
g3dvl: Bad test, use proper picture height.

15 years agonouveau: first draft of swizzle texture upload to vram
Patrice Mandin [Tue, 7 Oct 2008 19:47:45 +0000 (21:47 +0200)]
nouveau: first draft of swizzle texture upload to vram

15 years agog3dvl: Ignore client flush requests unless entire frame is buffered.
Younes Manton [Mon, 22 Sep 2008 16:26:13 +0000 (12:26 -0400)]
g3dvl: Ignore client flush requests unless entire frame is buffered.

15 years agog3dvl: Bad semantic index in shader decl.
Younes Manton [Mon, 22 Sep 2008 16:13:23 +0000 (12:13 -0400)]
g3dvl: Bad semantic index in shader decl.

15 years agonouveau: init scaled_image_from_memory object for swizzled surface upload
Patrice Mandin [Sun, 21 Sep 2008 12:12:04 +0000 (14:12 +0200)]
nouveau: init scaled_image_from_memory object for swizzled surface upload

15 years agonouveau: add flag for swizzled surface upload
Patrice Mandin [Sun, 21 Sep 2008 12:02:30 +0000 (14:02 +0200)]
nouveau: add flag for swizzled surface upload

15 years agonv50: use 3D engine clears, 2D engine doesn't understand zeta formats
Ben Skeggs [Thu, 18 Sep 2008 03:39:52 +0000 (13:39 +1000)]
nv50: use 3D engine clears, 2D engine doesn't understand zeta formats

15 years agonv50: hack surface alloc a bit for now
Ben Skeggs [Thu, 18 Sep 2008 03:15:55 +0000 (13:15 +1000)]
nv50: hack surface alloc a bit for now

15 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Thu, 18 Sep 2008 03:14:36 +0000 (13:14 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

15 years agog3dvl: Update XvMC unit tests.
Younes Manton [Thu, 18 Sep 2008 02:00:37 +0000 (22:00 -0400)]
g3dvl: Update XvMC unit tests.

15 years agogallium: fix wide point / point coord semantic info (generic, not fog)
Brian Paul [Wed, 17 Sep 2008 22:51:53 +0000 (16:51 -0600)]
gallium: fix wide point / point coord semantic info (generic, not fog)

15 years agogallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversion
Brian Paul [Wed, 17 Sep 2008 22:49:26 +0000 (16:49 -0600)]
gallium: fix fog vs. pointcoord attribute handling in mesa->TGSI conversion

15 years agomesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord
Brian Paul [Wed, 17 Sep 2008 22:48:13 +0000 (16:48 -0600)]
mesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord

15 years agoegl: print multisample info
Brian Paul [Wed, 17 Sep 2008 21:29:59 +0000 (15:29 -0600)]
egl: print multisample info

15 years agogallium: clean-up/fix msaa override in state tracker
Brian Paul [Wed, 17 Sep 2008 20:32:33 +0000 (14:32 -0600)]
gallium: clean-up/fix msaa override in state tracker

15 years agogallium: fix tgsi sanity checker with respect to END.
Brian Paul [Wed, 17 Sep 2008 19:14:57 +0000 (13:14 -0600)]
gallium: fix tgsi sanity checker with respect to END.

Subroutine code may be found after the END instruction so it's not always
the last instruction.
At least check for presence of exactly one END instruction though.

15 years agomesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()
Brian Paul [Wed, 17 Sep 2008 19:13:02 +0000 (13:13 -0600)]
mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()

15 years agogallium: include prog_print.h to silence warning
Brian Paul [Wed, 17 Sep 2008 16:25:18 +0000 (10:25 -0600)]
gallium: include prog_print.h to silence warning

15 years agogallium: need to finish, not flush, in st_copy_texsubimage()
Brian Paul [Wed, 17 Sep 2008 16:22:38 +0000 (10:22 -0600)]
gallium: need to finish, not flush, in st_copy_texsubimage()

15 years agogallium: new assertion on surface->texture
Brian Paul [Wed, 17 Sep 2008 16:20:49 +0000 (10:20 -0600)]
gallium: new assertion on surface->texture

15 years agotgsi: Add a ugly fix for CONSTANT problems
Jakob Bornecrantz [Wed, 17 Sep 2008 16:11:35 +0000 (18:11 +0200)]
tgsi: Add a ugly fix for CONSTANT problems

15 years agotgsi: More debug printing on sanity check error
Jakob Bornecrantz [Wed, 17 Sep 2008 16:08:03 +0000 (18:08 +0200)]
tgsi: More debug printing on sanity check error

15 years agogallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()
Brian Paul [Wed, 17 Sep 2008 15:47:51 +0000 (09:47 -0600)]
gallium: fix lack of surface reference counting in cso_set/save/restore_framebuffer()

Fixes asst problems with FBO / render to texture.

15 years agomesa: fix bug in previous changes to _slang_resolve_attributes()
Brian Paul [Wed, 17 Sep 2008 15:05:04 +0000 (09:05 -0600)]
mesa: fix bug in previous changes to _slang_resolve_attributes()

15 years agomesa: rework GLSL vertex attribute binding
Brian Paul [Tue, 16 Sep 2008 21:50:44 +0000 (15:50 -0600)]
mesa: rework GLSL vertex attribute binding

Calls to glBindAttribLocation() should not take effect until the next time
that glLinkProgram() is called.
gl_shader_program::Attributes now just contains user-defined bindings.
gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.

15 years agogallium: fix glTexImage(width=height=depth=0) case
Brian Paul [Tue, 16 Sep 2008 17:59:24 +0000 (11:59 -0600)]
gallium: fix glTexImage(width=height=depth=0) case

Free old teximage/level data, then stop.

15 years agomesa: fix display list regression (check if save->prim_count > 0 in vbo_save_EndList())
Brian Paul [Tue, 16 Sep 2008 19:23:01 +0000 (13:23 -0600)]
mesa: fix display list regression (check if save->prim_count > 0 in vbo_save_EndList())

15 years agogallium: fix info entries for KIL, KILP
Brian Paul [Tue, 16 Sep 2008 18:52:19 +0000 (12:52 -0600)]
gallium: fix info entries for KIL, KILP

KIL takes 1 src register.  KILP uses no registers (uses cond codes).

15 years agomesa: fix bug in get_uniform_rows_cols(): sometimes returned too many rows
Brian Paul [Tue, 16 Sep 2008 14:55:54 +0000 (08:55 -0600)]
mesa: fix bug in get_uniform_rows_cols(): sometimes returned too many rows

15 years agogallium: move _vbo_DestroyContext() call
Brian Paul [Tue, 16 Sep 2008 14:51:28 +0000 (08:51 -0600)]
gallium: move _vbo_DestroyContext() call

Call it before freeing core Mesa state to avoid references to freed buffer objects.

15 years agomesa: protect against double-free in _vbo_DestroyContext()
Brian Paul [Tue, 16 Sep 2008 14:49:43 +0000 (08:49 -0600)]
mesa: protect against double-free in _vbo_DestroyContext()

15 years agomesa: State tracker now checks for faulty shaders on debug
Jakob Bornecrantz [Tue, 16 Sep 2008 14:17:46 +0000 (16:17 +0200)]
mesa: State tracker now checks for faulty shaders on debug

15 years agotgsi: Make tgsi_sanity.c compile with make
Jakob Bornecrantz [Tue, 16 Sep 2008 14:16:54 +0000 (16:16 +0200)]
tgsi: Make tgsi_sanity.c compile with make

15 years agotrace: Fix typo in build instructions.
José Fonseca [Tue, 16 Sep 2008 11:24:43 +0000 (20:24 +0900)]
trace: Fix typo in build instructions.

15 years agomesa: fix MSAA enable state in update_multisample()
Brian Paul [Mon, 15 Sep 2008 23:10:04 +0000 (17:10 -0600)]
mesa: fix MSAA enable state in update_multisample()

15 years agomesa: remove some assertions that are invalid during context tear-down
Brian Paul [Mon, 15 Sep 2008 15:07:32 +0000 (09:07 -0600)]
mesa: remove some assertions that are invalid during context tear-down

15 years agomesa: get another class of degenerate dlists working
Keith Whitwell [Mon, 15 Sep 2008 12:47:25 +0000 (13:47 +0100)]
mesa: get another class of degenerate dlists working

Primitive begin in one dlist, end in another.

15 years agogallium: add another value check to util_fast_pow()
Brian Paul [Sat, 13 Sep 2008 21:20:31 +0000 (15:20 -0600)]
gallium: add another value check to util_fast_pow()

Fixes glitches seen in morph3d demo.

15 years agog3dvl: Fix field coded block copy.
Younes Manton [Sat, 13 Sep 2008 05:35:14 +0000 (01:35 -0400)]
g3dvl: Fix field coded block copy.

15 years agog3dvl: Use winsys_buffer_reference() instead of pipe_buffer_reference().
Younes Manton [Fri, 12 Sep 2008 19:10:43 +0000 (15:10 -0400)]
g3dvl: Use winsys_buffer_reference() instead of pipe_buffer_reference().

Old pipe_buffer_reference() renamed winsys_buffer_reference(), new
pipe_buffer_reference() expects a screen.

15 years agog3dvl: Implement surface sync functions.
Younes Manton [Wed, 10 Sep 2008 23:37:56 +0000 (19:37 -0400)]
g3dvl: Implement surface sync functions.

15 years agog3dvl: Fullscreen fixes. Respect src & dst coords during scaling, clear FB.
Younes Manton [Tue, 9 Sep 2008 06:27:05 +0000 (02:27 -0400)]
g3dvl: Fullscreen fixes. Respect src & dst coords during scaling, clear FB.

15 years agocell: fix twiddled tile display for XSHM. Fixed blank window problem.
Brian Paul [Fri, 12 Sep 2008 17:35:22 +0000 (11:35 -0600)]
cell: fix twiddled tile display for XSHM.  Fixed blank window problem.

15 years agog3dvl: Update softlinks to nouveau winsys files, related fixes.
Younes Manton [Fri, 12 Sep 2008 17:22:43 +0000 (13:22 -0400)]
g3dvl: Update softlinks to nouveau winsys files, related fixes.

15 years agog3dvl: Cleanup.
Younes Manton [Tue, 9 Sep 2008 04:28:37 +0000 (00:28 -0400)]
g3dvl: Cleanup.

15 years agog3dvl: Clean up Makefile deps.
Younes Manton [Tue, 9 Sep 2008 01:05:49 +0000 (21:05 -0400)]
g3dvl: Clean up Makefile deps.

15 years agocell: disable calls to old gen code
Brian Paul [Fri, 12 Sep 2008 13:57:08 +0000 (07:57 -0600)]
cell: disable calls to old gen code

15 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Fri, 12 Sep 2008 10:33:59 +0000 (20:33 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

15 years agocell: initial support for fragment shader code generation.
Brian Paul [Thu, 11 Sep 2008 23:59:52 +0000 (17:59 -0600)]
cell: initial support for fragment shader code generation.

TGSI shaders are translated into SPE instructions which are then sent to
the SPEs for execution.  Only a few opcodes work, no swizzling yet, no
support for constants/immediates, etc.

15 years agouse APP_CC
Brian Paul [Thu, 11 Sep 2008 23:55:53 +0000 (17:55 -0600)]
use APP_CC

15 years agocell: fix tile twidding bug seen in the event of multiple expose events
Brian Paul [Thu, 11 Sep 2008 23:10:10 +0000 (17:10 -0600)]
cell: fix tile twidding bug seen in the event of multiple expose events

15 years agocell: minor improvements to fragment code-gen
Brian Paul [Thu, 11 Sep 2008 23:08:52 +0000 (17:08 -0600)]
cell: minor improvements to fragment code-gen

15 years agogallium: add special cases in spe_load_float(), spe_load_int(), added spe_splat()
Brian Paul [Thu, 11 Sep 2008 23:07:30 +0000 (17:07 -0600)]
gallium: add special cases in spe_load_float(), spe_load_int(), added spe_splat()

15 years agocell: put cell_ prefix on gen_fragment_function()
Brian Paul [Thu, 11 Sep 2008 21:48:13 +0000 (15:48 -0600)]
cell: put cell_ prefix on gen_fragment_function()

15 years agogallium: typo: s/PIPE_FORMAT_Z16UNORM/PIPE_FORMAT_Z16_UNORM/
Brian Paul [Thu, 11 Sep 2008 18:01:19 +0000 (12:01 -0600)]
gallium: typo: s/PIPE_FORMAT_Z16UNORM/PIPE_FORMAT_Z16_UNORM/

15 years agoegl_xdri: Add the top-level lib dir so we link against the libGL we built.
Dima Zavin [Thu, 21 Aug 2008 17:41:19 +0000 (10:41 -0700)]
egl_xdri: Add the top-level lib dir so we link against the libGL we built.

15 years agoegl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm.
Dima Zavin [Thu, 21 Aug 2008 17:40:55 +0000 (10:40 -0700)]
egl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm.

15 years agoglut: only call glFinish() in processWindowWorkList() for indirect contexts.
Brian Paul [Thu, 11 Sep 2008 17:05:13 +0000 (11:05 -0600)]
glut: only call glFinish() in processWindowWorkList() for indirect contexts.

Basically, do as the comment says.

15 years agodefine new APP_CC configuration variable for building apps/demos/tests
Brian Paul [Thu, 11 Sep 2008 17:00:54 +0000 (11:00 -0600)]
define new APP_CC configuration variable for building apps/demos/tests

For Cell, need to use different compilers for the libraries vs. the demos/tests
to avoid strange link error regarding "_Unwind_GetIPInfo@GCC_4.2.0"

15 years agocell: more comments, stub code for colormask/logicop/etc
Brian Paul [Thu, 11 Sep 2008 16:52:03 +0000 (10:52 -0600)]
cell: more comments, stub code for colormask/logicop/etc

15 years agosimple quad drawing test
Brian Paul [Thu, 11 Sep 2008 16:43:14 +0000 (10:43 -0600)]
simple quad drawing test

15 years agocell: fix typos in blend code-gen
Brian Paul [Thu, 11 Sep 2008 16:38:55 +0000 (10:38 -0600)]
cell: fix typos in blend code-gen

15 years agocell: remove old state CMDs, added comments
Brian Paul [Thu, 11 Sep 2008 16:38:37 +0000 (10:38 -0600)]
cell: remove old state CMDs, added comments

15 years agocell: clean-up, comments
Brian Paul [Thu, 11 Sep 2008 16:33:24 +0000 (10:33 -0600)]
cell: clean-up, comments

15 years agocell: disable NEW_VS emit
Brian Paul [Thu, 11 Sep 2008 16:33:13 +0000 (10:33 -0600)]
cell: disable NEW_VS emit

15 years agocell: don't build unused sources
Brian Paul [Thu, 11 Sep 2008 16:27:17 +0000 (10:27 -0600)]
cell: don't build unused sources

15 years agocell: remove old blend/depth/stencil/logicop structs
Brian Paul [Thu, 11 Sep 2008 16:26:00 +0000 (10:26 -0600)]
cell: remove old blend/depth/stencil/logicop structs

15 years agocell: asst. clean-up
Brian Paul [Thu, 11 Sep 2008 16:25:38 +0000 (10:25 -0600)]
cell: asst. clean-up

15 years agocell: checkpoint: remove more of the old per-fragment code
Brian Paul [Thu, 11 Sep 2008 16:13:20 +0000 (10:13 -0600)]
cell: checkpoint: remove more of the old per-fragment code

15 years agocell: begin new blending code (both codegen and fallback paths)
Brian Paul [Thu, 11 Sep 2008 16:08:06 +0000 (10:08 -0600)]
cell: begin new blending code (both codegen and fallback paths)

15 years agocell: fix shuffle in spu_unpack_B8G8R8A8()
Brian Paul [Thu, 11 Sep 2008 15:55:39 +0000 (09:55 -0600)]
cell: fix shuffle in spu_unpack_B8G8R8A8()

15 years agocell: added cast in spu_splats() call
Brian Paul [Thu, 11 Sep 2008 14:44:54 +0000 (08:44 -0600)]
cell: added cast in spu_splats() call

15 years agocell: remove old per-fragment code, replace with all new code
Brian Paul [Thu, 11 Sep 2008 00:51:43 +0000 (18:51 -0600)]
cell: remove old per-fragment code, replace with all new code

15 years agocell: checkpoint commit of new per-fragment processing
Brian Paul [Thu, 11 Sep 2008 00:22:00 +0000 (18:22 -0600)]
cell: checkpoint commit of new per-fragment processing

Do code generation for alpha test, z test, stencil, blend, colormask
and framebuffer/tile read/write as a single code block.
Ian's previous blend/z/stencil test code is still there but mostly disabled
and will be removed soon.

15 years agogallium: assorted additions and fixes to Cell SPE rtasm code
Brian Paul [Wed, 10 Sep 2008 23:11:48 +0000 (17:11 -0600)]
gallium: assorted additions and fixes to Cell SPE rtasm code

Fix incorrect opcode for fsmbi.
Added "macro" functions for loading floats/ints, register complement, zero, move.
Added #defines for return address and stack pointer registers.
Added assertions to check that the instruction buffer doesn't overflow.

15 years agocell: minor change to Z float/int conversion code (avoid switch)
Brian Paul [Mon, 8 Sep 2008 17:53:14 +0000 (11:53 -0600)]
cell: minor change to Z float/int conversion code (avoid switch)

15 years agocell: comments
Brian Paul [Mon, 8 Sep 2008 17:50:13 +0000 (11:50 -0600)]
cell: comments

15 years agocell: comments, etc.
Brian Paul [Fri, 5 Sep 2008 19:55:02 +0000 (13:55 -0600)]
cell: comments, etc.

15 years agogallium: comments, assertions, etc
Brian Paul [Fri, 5 Sep 2008 19:54:14 +0000 (13:54 -0600)]
gallium: comments, assertions, etc

15 years agopress 'c' to toggle Z clear value between 0/1
Brian Paul [Fri, 5 Sep 2008 19:07:43 +0000 (13:07 -0600)]
press 'c' to toggle Z clear value between 0/1

15 years agopress 'f' to cycle through depth test funcs
Brian Paul [Fri, 5 Sep 2008 18:59:40 +0000 (12:59 -0600)]
press 'f' to cycle through depth test funcs

15 years agonouveau: gallium directory structure changed again..
Ben Skeggs [Wed, 10 Sep 2008 20:41:18 +0000 (06:41 +1000)]
nouveau: gallium directory structure changed again..

15 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Wed, 10 Sep 2008 20:09:05 +0000 (06:09 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

Conflicts:
configs/default

15 years agotgsi: Fix newline pos.
José Fonseca [Wed, 10 Sep 2008 01:33:03 +0000 (10:33 +0900)]
tgsi: Fix newline pos.

15 years agotgsi: Verify constants are set before attempting to read them.
José Fonseca [Wed, 10 Sep 2008 01:32:52 +0000 (10:32 +0900)]
tgsi: Verify constants are set before attempting to read them.

15 years agosoftpipe: Code (commented out) to dump BMPs.
José Fonseca [Tue, 9 Sep 2008 13:17:31 +0000 (22:17 +0900)]
softpipe: Code (commented out) to dump BMPs.

15 years agoutil: Ensure we always have a full qualified file name on windows display.
José Fonseca [Tue, 9 Sep 2008 12:16:36 +0000 (21:16 +0900)]
util: Ensure we always have a full qualified file name on windows display.

15 years agoutil: Enable u_stream_std.c for PIPE_SUBSYSTEM_WINDOWS_USER.
Michal Krol [Tue, 9 Sep 2008 09:25:05 +0000 (11:25 +0200)]
util: Enable u_stream_std.c for PIPE_SUBSYSTEM_WINDOWS_USER.

15 years agosoftpipe: Silence compiler warning on Windows.
Michal Krol [Tue, 9 Sep 2008 09:21:57 +0000 (11:21 +0200)]
softpipe: Silence compiler warning on Windows.

15 years agosoftpipe: Protect pipe_condvar_signal/broadcast calls with a mutex.
Michal Krol [Mon, 8 Sep 2008 21:04:17 +0000 (23:04 +0200)]
softpipe: Protect pipe_condvar_signal/broadcast calls with a mutex.

15 years agosoftpipe: Set SP_NUM_QUAD_THREADS 1 effectively disabling multithreaded softpipe.
Michal Krol [Mon, 8 Sep 2008 15:21:13 +0000 (17:21 +0200)]
softpipe: Set SP_NUM_QUAD_THREADS 1 effectively disabling multithreaded softpipe.

We want to make it env variable, or even better, autodetect as the feature makes
softpipe run slower on a single CPU.

15 years agosoftpipe: More improvements for multithreaded softpipe.
Michal Krol [Sat, 6 Sep 2008 14:35:23 +0000 (16:35 +0200)]
softpipe: More improvements for multithreaded softpipe.

Store only input and inout of a quad_header in job que.