mesa.git
15 years agoindices: quad fixes
Keith Whitwell [Thu, 5 Feb 2009 16:04:13 +0000 (16:04 +0000)]
indices: quad fixes

15 years agogallium: add new aux lib for index list translations
Keith Whitwell [Thu, 5 Feb 2009 14:44:17 +0000 (14:44 +0000)]
gallium: add new aux lib for index list translations

Could this be the ultimate index list translating utility?  Maybe, but it
doesn't yet include support for splitting primitives.

Unlike previous attempts, this captures all possible combinations of API
and hardware provoking vertex, supports generated list reuse and various
other tricks.  Relies on python-generated code.

15 years agogallium: fixup #includes: p_screen.h does not need anything in p_state.h
Brian Paul [Thu, 5 Feb 2009 15:23:00 +0000 (08:23 -0700)]
gallium: fixup #includes: p_screen.h does not need anything in p_state.h

15 years agogallium: move 'struct pipe_winsys'
Brian Paul [Thu, 5 Feb 2009 15:16:56 +0000 (08:16 -0700)]
gallium: move 'struct pipe_winsys'

Not used in p_state.h but used in p_context.h and p_screen.h

15 years agonv50: stop using nouveau_push.h, it's evil
Ben Skeggs [Thu, 5 Feb 2009 08:40:38 +0000 (18:40 +1000)]
nv50: stop using nouveau_push.h, it's evil

15 years agonv04-nv40: move 2d blit/fill code into pipe driver
Ben Skeggs [Thu, 5 Feb 2009 08:19:32 +0000 (18:19 +1000)]
nv04-nv40: move 2d blit/fill code into pipe driver

15 years agonv50: move 2d blit/fill code into pipe driver
Ben Skeggs [Thu, 5 Feb 2009 04:04:45 +0000 (14:04 +1000)]
nv50: move 2d blit/fill code into pipe driver

15 years agonouveau: support getting "native" bo from winsys
Ben Skeggs [Thu, 5 Feb 2009 03:17:12 +0000 (13:17 +1000)]
nouveau: support getting "native" bo from winsys

15 years agonouveau: notifier timeout is a float now
Ben Skeggs [Wed, 4 Feb 2009 11:08:41 +0000 (21:08 +1000)]
nouveau: notifier timeout is a float now

15 years agonouveau: get things building/running again after pipe_surface.buffer removal
Ben Skeggs [Wed, 4 Feb 2009 10:59:49 +0000 (20:59 +1000)]
nouveau: get things building/running again after pipe_surface.buffer removal

Don't look at nouveau_winsys_pipe.h... I promise it's temporary!

15 years agonouveau: link against libdrm_nouveau (installed with libdrm)
Ben Skeggs [Wed, 4 Feb 2009 04:55:13 +0000 (14:55 +1000)]
nouveau: link against libdrm_nouveau (installed with libdrm)

15 years agomesa: fix offset problem with interleaved arrays
Alan Hourihane [Tue, 3 Feb 2009 20:07:42 +0000 (20:07 +0000)]
mesa: fix offset problem with interleaved arrays

15 years agogallium: adjust gdi for the latest changes
Zack Rusin [Tue, 3 Feb 2009 04:54:28 +0000 (23:54 -0500)]
gallium: adjust gdi for the latest changes

15 years agogallium: remove pipe_buffer from surfaces
Zack Rusin [Tue, 3 Feb 2009 04:47:16 +0000 (23:47 -0500)]
gallium: remove pipe_buffer from surfaces

this change disassociates, at least from the driver perspective,
the surface from buffer. surfaces are technically now views on the
textures so make it so by hiding the buffer in the internals of
textures.

15 years agoxlib: Get conditional compilation of drivers working again.
José Fonseca [Mon, 2 Feb 2009 15:37:58 +0000 (15:37 +0000)]
xlib: Get conditional compilation of drivers working again.

15 years agogdi: Update for wgl st reorg.
José Fonseca [Mon, 2 Feb 2009 15:32:31 +0000 (15:32 +0000)]
gdi: Update for wgl st reorg.

15 years agoscons: Fixups for the introduction of the xlib state_tracker.
Michel Dänzer [Mon, 2 Feb 2009 14:49:33 +0000 (15:49 +0100)]
scons: Fixups for the introduction of the xlib state_tracker.

Not quite working yet; glxinfo complains about glXChooseVisual being undefined.

15 years agogallium: Stop relinking drivers and aux libraries
Jakob Bornecrantz [Mon, 2 Feb 2009 13:18:50 +0000 (14:18 +0100)]
gallium: Stop relinking drivers and aux libraries

15 years agoMerge commit 'origin/gallium-0.2' into gallium-0.2
Keith Whitwell [Mon, 2 Feb 2009 12:18:34 +0000 (12:18 +0000)]
Merge commit 'origin/gallium-0.2' into gallium-0.2

15 years agoMerge branch 'gallium-wgl-rework' into gallium-0.2
Keith Whitwell [Mon, 2 Feb 2009 12:17:01 +0000 (12:17 +0000)]
Merge branch 'gallium-wgl-rework' into gallium-0.2

Conflicts:

src/gallium/state_trackers/wgl/shared/stw_public.h

15 years agowgl: Only export the same symbols as Microsoft's opengl32.dll.
José Fonseca [Sun, 1 Feb 2009 14:42:40 +0000 (14:42 +0000)]
wgl: Only export the same symbols as Microsoft's opengl32.dll.

Plus the ICD entrypoints.

15 years agoMerge branch 'gallium-0.2' of git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa...
Stephane Marchesin [Mon, 2 Feb 2009 01:13:07 +0000 (02:13 +0100)]
Merge branch 'gallium-0.2' of git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa into gallium-0.2

15 years agonv04: some old changes I had lying around.
Stephane Marchesin [Mon, 2 Feb 2009 01:12:46 +0000 (02:12 +0100)]
nv04: some old changes I had lying around.

15 years agoMerge branch 'gallium-winsys-private' into gallium-0.2
Zack Rusin [Sun, 1 Feb 2009 23:48:16 +0000 (18:48 -0500)]
Merge branch 'gallium-winsys-private' into gallium-0.2

15 years agoprogs: Get more samples building on windows.
José Fonseca [Sun, 1 Feb 2009 12:00:07 +0000 (12:00 +0000)]
progs: Get more samples building on windows.

15 years agoutil: List new file in sconscript.
José Fonseca [Sun, 1 Feb 2009 10:31:25 +0000 (10:31 +0000)]
util: List new file in sconscript.

15 years agopipebuffer: Drop (most of) pipe winsys stuff.
José Fonseca [Sun, 1 Feb 2009 10:27:54 +0000 (10:27 +0000)]
pipebuffer: Drop (most of) pipe winsys stuff.

15 years agonv20: send buffer handles on hw state emit
Pekka Paalanen [Sat, 31 Jan 2009 21:32:32 +0000 (23:32 +0200)]
nv20: send buffer handles on hw state emit

Color and Z buffer offsets were emitted here, now also the buffer
handles are emitted so they target the correct memory.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agonv20: disable depth writes in hw init
Pekka Paalanen [Sat, 31 Jan 2009 21:28:38 +0000 (23:28 +0200)]
nv20: disable depth writes in hw init

Probably not necessary, but just in case. Depth registers point to the
color buffer, when there is no depth buffer.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agonv20: Z-mapping parameters
Pekka Paalanen [Sat, 31 Jan 2009 12:39:08 +0000 (14:39 +0200)]
nv20: Z-mapping parameters

Based on my renouveau dump, adjust initial hw state related to Z-mapping,
and add one unknown depth reg into depth/stencil/alpha emission.

Now trivial/tri-z on nv20 looks identical to swrast rendered one.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agonv20: draw_elements needs to flush
Pekka Paalanen [Sat, 31 Jan 2009 12:36:20 +0000 (14:36 +0200)]
nv20: draw_elements needs to flush

nv20_draw_elements() uses the draw module, and draw_flush() needs to be
called to actually emit the vertices immediately.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agonv20: set surface status in clear()
Pekka Paalanen [Sat, 31 Jan 2009 12:34:15 +0000 (14:34 +0200)]
nv20: set surface status in clear()

Other nvXX drivers seem to do this, so I do it too.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agogallium: initialize simple screen in drivers
Zack Rusin [Sat, 31 Jan 2009 20:14:38 +0000 (15:14 -0500)]
gallium: initialize simple screen in drivers

15 years agogallium: add a convience wrapper for simple screens
Zack Rusin [Fri, 30 Jan 2009 22:59:10 +0000 (17:59 -0500)]
gallium: add a convience wrapper for simple screens

forwards screen calls to the winsys

15 years agostw: Remove pipe_winsys references.
José Fonseca [Fri, 30 Jan 2009 22:04:35 +0000 (22:04 +0000)]
stw: Remove pipe_winsys references.

15 years agogallium: Don't ask winsys name -- let pipe screen do that if it wants.
José Fonseca [Fri, 30 Jan 2009 22:04:15 +0000 (22:04 +0000)]
gallium: Don't ask winsys name -- let pipe screen do that if it wants.

Allows to leave screen->winsys NULL.

15 years agostw: Don't use the winsys.
José Fonseca [Fri, 30 Jan 2009 21:51:59 +0000 (21:51 +0000)]
stw: Don't use the winsys.

15 years agogallium: make p_winsys internal
Zack Rusin [Fri, 30 Jan 2009 20:56:00 +0000 (15:56 -0500)]
gallium: make p_winsys internal

move it to pipe/internal/p_winsys_screen.h and start converting
the state trackers to the screen usage

15 years agoMerge branch 'gallium-0.2' into gallium-winsys-private
José Fonseca [Fri, 30 Jan 2009 17:01:23 +0000 (17:01 +0000)]
Merge branch 'gallium-0.2' into gallium-winsys-private

15 years agoutil: Define ffs for MinGW.
José Fonseca [Fri, 30 Jan 2009 14:59:32 +0000 (14:59 +0000)]
util: Define ffs for MinGW.

15 years agogdi: Update for winsys interface changes.
José Fonseca [Fri, 30 Jan 2009 14:32:11 +0000 (14:32 +0000)]
gdi: Update for winsys interface changes.

15 years agoMerge branch 'gallium-0.2' into gallium-winsys-private
José Fonseca [Fri, 30 Jan 2009 14:07:12 +0000 (14:07 +0000)]
Merge branch 'gallium-0.2' into gallium-winsys-private

15 years agopipebuffer: Consider 0 as no alignment needed.
José Fonseca [Fri, 30 Jan 2009 14:06:25 +0000 (14:06 +0000)]
pipebuffer: Consider 0 as no alignment needed.

15 years agogallium: give the screen priority when it comes to buffer allocations
Zack Rusin [Fri, 30 Jan 2009 02:43:15 +0000 (21:43 -0500)]
gallium: give the screen priority when it comes to buffer allocations

allows the driver to overwrite buffer allocation, first step on the way
to making winsys interface internal to the drivers. state trackers and
the code above it will go through the screen

15 years agogallium: Don't build egl state_tracker
Jakob Bornecrantz [Fri, 30 Jan 2009 01:24:47 +0000 (02:24 +0100)]
gallium: Don't build egl state_tracker

15 years agoegl: Don't fill shown screen
Jakob Bornecrantz [Fri, 30 Jan 2009 00:57:07 +0000 (01:57 +0100)]
egl: Don't fill shown screen

15 years agointel: Remove debug print
Jakob Bornecrantz [Fri, 30 Jan 2009 00:55:09 +0000 (01:55 +0100)]
intel: Remove debug print

15 years agoi915: Fix surface operations
Jakob Bornecrantz [Fri, 30 Jan 2009 00:53:50 +0000 (01:53 +0100)]
i915: Fix surface operations

15 years agopipebuffer: Ondemand buffer manager.
José Fonseca [Mon, 24 Nov 2008 14:17:49 +0000 (23:17 +0900)]
pipebuffer: Ondemand buffer manager.

A variation of malloc buffers which get transferred to real graphics memory
when there is an attempt to validate them.

15 years agopipebuffer: Implement proper buffer validation.
José Fonseca [Mon, 24 Nov 2008 04:59:06 +0000 (13:59 +0900)]
pipebuffer: Implement proper buffer validation.

15 years agoegl: Blit to the bound frontbuffer with pipe
Jakob Bornecrantz [Thu, 29 Jan 2009 01:33:22 +0000 (02:33 +0100)]
egl: Blit to the bound frontbuffer with pipe

15 years agointel: Set render domain on read and write
Jakob Bornecrantz [Thu, 29 Jan 2009 01:32:58 +0000 (02:32 +0100)]
intel: Set render domain on read and write

15 years agointel: Try forcing flushes
Jakob Bornecrantz [Thu, 29 Jan 2009 00:34:58 +0000 (01:34 +0100)]
intel: Try forcing flushes

15 years agointel: Dump batchbuffer before sending to hw
Jakob Bornecrantz [Thu, 29 Jan 2009 00:33:49 +0000 (01:33 +0100)]
intel: Dump batchbuffer before sending to hw

15 years agointel: Change link order
Jakob Bornecrantz [Thu, 29 Jan 2009 00:27:38 +0000 (01:27 +0100)]
intel: Change link order

15 years agoi915: Don't take a context as argument for debug
Jakob Bornecrantz [Thu, 29 Jan 2009 00:29:26 +0000 (01:29 +0100)]
i915: Don't take a context as argument for debug

15 years agoi915: Don't dump batchbuffer on flush in context
Jakob Bornecrantz [Thu, 29 Jan 2009 00:30:37 +0000 (01:30 +0100)]
i915: Don't dump batchbuffer on flush in context

15 years agodocs: i965 fixes
Brian Paul [Thu, 29 Jan 2009 00:02:39 +0000 (17:02 -0700)]
docs: i965 fixes

15 years agoi965: fix bug in pass0_precalc_mov()
Brian Paul [Thu, 29 Jan 2009 00:01:34 +0000 (17:01 -0700)]
i965: fix bug in pass0_precalc_mov()

Previously, "in-place" swizzles such as:
   MOV t, t.xxyx;
were handled incorrectly.  Fixed by splitting the one loop into two loops so we
get all the refs before assigning them (to avoid potential clobbering).

(cherry picked from master/commit faa48915d27634a12f123eaa6e954ec79565e365)

15 years agoi965: widen per-texture bitfields for 16 texture image units
Brian Paul [Thu, 29 Jan 2009 00:01:03 +0000 (17:01 -0700)]
i965: widen per-texture bitfields for 16 texture image units

(cherry picked from master/commit f78c388b6c156cb155f089b00612f00919090a8e)

15 years agointel: check if stencil test is enabled in intel_stencil_drawpixels()
Brian Paul [Thu, 29 Jan 2009 00:00:23 +0000 (17:00 -0700)]
intel: check if stencil test is enabled in intel_stencil_drawpixels()

(cherry picked from master/commit 72ee0e247d799c85612c72bbd2257648e11fa583)

15 years agointel: save/restore GL matrix mode in intel_meta_set_passthrough_transform(), intel_m...
Brian Paul [Wed, 28 Jan 2009 23:55:16 +0000 (16:55 -0700)]
intel: save/restore GL matrix mode in intel_meta_set_passthrough_transform(), intel_meta_restore_transform()

(cherry picked from master, commit 723648f2ee2a8e529063c9da84e9dff9c8c6be99)

15 years agodocs: fix typo
Brian Paul [Thu, 22 Jan 2009 17:39:05 +0000 (10:39 -0700)]
docs: fix typo

15 years agomesa: set version to 7.4 for mesa_7_4_branch
Brian Paul [Thu, 22 Jan 2009 17:19:39 +0000 (10:19 -0700)]
mesa: set version to 7.4 for mesa_7_4_branch

15 years agodocs: skeleton 7.4 release notes file
Brian Paul [Thu, 22 Jan 2009 17:18:04 +0000 (10:18 -0700)]
docs: skeleton 7.4 release notes file

15 years agodocs: 7.3 md5 sums
Brian Paul [Thu, 22 Jan 2009 17:14:39 +0000 (10:14 -0700)]
docs: 7.3 md5 sums

15 years agomesa: set version to 7.3
Brian Paul [Thu, 22 Jan 2009 17:14:04 +0000 (10:14 -0700)]
mesa: set version to 7.3

15 years agodocs: set 7.3 release date
Brian Paul [Thu, 22 Jan 2009 16:59:04 +0000 (09:59 -0700)]
docs: set 7.3 release date

15 years agodocs: assorted updates, link fixes
Brian Paul [Thu, 22 Jan 2009 16:58:52 +0000 (09:58 -0700)]
docs: assorted updates, link fixes

15 years agointel: Fix type correctly this time
Jakob Bornecrantz [Wed, 28 Jan 2009 22:40:10 +0000 (23:40 +0100)]
intel: Fix type correctly this time

Facepalm.

15 years agointel: Fix typo
Jakob Bornecrantz [Wed, 28 Jan 2009 22:37:23 +0000 (23:37 +0100)]
intel: Fix typo

15 years agoi915: Add verbose debuging
Jakob Bornecrantz [Wed, 28 Jan 2009 22:24:42 +0000 (23:24 +0100)]
i915: Add verbose debuging

Only enabled while in development this commit
will be reverted in the future.

15 years agoi915: Fix batchbuffer dumping
Jakob Bornecrantz [Wed, 28 Jan 2009 22:23:40 +0000 (23:23 +0100)]
i915: Fix batchbuffer dumping

15 years agoi915: Flush on surface copy/clear
Jakob Bornecrantz [Wed, 28 Jan 2009 22:20:51 +0000 (23:20 +0100)]
i915: Flush on surface copy/clear

15 years agointel: Supply the correct buffers to gem
Jakob Bornecrantz [Wed, 28 Jan 2009 22:22:28 +0000 (23:22 +0100)]
intel: Supply the correct buffers to gem

15 years agogallium: Build EGL st when build glx st
Jakob Bornecrantz [Wed, 28 Jan 2009 22:06:42 +0000 (23:06 +0100)]
gallium: Build EGL st when build glx st

15 years agoegl: Adopt to st_framebuffer changes
Jakob Bornecrantz [Wed, 28 Jan 2009 22:06:04 +0000 (23:06 +0100)]
egl: Adopt to st_framebuffer changes

15 years agowgl: add missing header
Keith Whitwell [Wed, 28 Jan 2009 20:41:00 +0000 (20:41 +0000)]
wgl: add missing header

15 years agostw: use proper stw_context pointers in shared interface
Keith Whitwell [Wed, 28 Jan 2009 20:39:06 +0000 (20:39 +0000)]
stw: use proper stw_context pointers in shared interface

Move away from hglrc.

15 years agostw: clean up error paths
Keith Whitwell [Wed, 28 Jan 2009 20:19:17 +0000 (20:19 +0000)]
stw: clean up error paths

15 years agostw: don't call out to wglGetPixelFormat()
Keith Whitwell [Wed, 28 Jan 2009 20:08:07 +0000 (20:08 +0000)]
stw: don't call out to wglGetPixelFormat()

15 years agostw: remove duplicate function declarations
Keith Whitwell [Wed, 28 Jan 2009 19:14:57 +0000 (19:14 +0000)]
stw: remove duplicate function declarations

15 years agostw: fix comment
Keith Whitwell [Wed, 28 Jan 2009 19:13:58 +0000 (19:13 +0000)]
stw: fix comment

15 years agostw: remove header
Keith Whitwell [Wed, 28 Jan 2009 19:10:50 +0000 (19:10 +0000)]
stw: remove header

15 years agosvga: remove pixelformat helpers from stw shared interface
Keith Whitwell [Wed, 28 Jan 2009 18:25:46 +0000 (18:25 +0000)]
svga: remove pixelformat helpers from stw shared interface

Keep these internal structs private to wgl/shared.  Pull in
some pixelformat choosing code from wgl/wgl to avoid exporting them
more generally.

15 years agostw: move get_proc_address and extension functions to shared
Keith Whitwell [Wed, 28 Jan 2009 17:07:15 +0000 (17:07 +0000)]
stw: move get_proc_address and extension functions to shared

15 years agostw: use shared version of make current in icd code
Keith Whitwell [Wed, 28 Jan 2009 16:47:31 +0000 (16:47 +0000)]
stw: use shared version of make current in icd code

15 years agostw: more swapbuffers refactoring
Keith Whitwell [Wed, 28 Jan 2009 16:23:52 +0000 (16:23 +0000)]
stw: more swapbuffers refactoring

15 years agowgl: split device structs, move swapbuffers to shared
Keith Whitwell [Wed, 28 Jan 2009 16:11:46 +0000 (16:11 +0000)]
wgl:  split device structs, move swapbuffers to shared

Each of icd, shared and wgl now have the opportunity to maintain their
own per-device structs, which should reduce the need for these
modules to be looking into each others structures.

15 years agopipebuffer: More assertions.
José Fonseca [Wed, 28 Jan 2009 15:53:21 +0000 (15:53 +0000)]
pipebuffer: More assertions.

15 years agopipebuffer: Fix alignment assertion.
José Fonseca [Wed, 28 Jan 2009 15:53:09 +0000 (15:53 +0000)]
pipebuffer: Fix alignment assertion.

15 years agopipebuffer: Export the pipe buffer winsys hooks.
José Fonseca [Wed, 28 Jan 2009 15:52:39 +0000 (15:52 +0000)]
pipebuffer: Export the pipe buffer winsys hooks.

15 years agostw: rename stw_wgl_ --> stw_
Keith Whitwell [Wed, 28 Jan 2009 13:45:01 +0000 (13:45 +0000)]
stw: rename stw_wgl_ --> stw_

15 years agostw: move pixelformat_get/set to shared
Keith Whitwell [Wed, 28 Jan 2009 13:43:10 +0000 (13:43 +0000)]
stw: move pixelformat_get/set to shared

15 years agostw: move pixelformat_describe to shared
Keith Whitwell [Wed, 28 Jan 2009 13:35:18 +0000 (13:35 +0000)]
stw: move pixelformat_describe to shared

15 years agowgl: move context functions to shared
Keith Whitwell [Wed, 28 Jan 2009 12:25:25 +0000 (12:25 +0000)]
wgl: move context functions to shared

15 years agowgl: split into shared, (fake)wgl and icd directories
Keith Whitwell [Wed, 28 Jan 2009 11:40:54 +0000 (11:40 +0000)]
wgl: split into shared, (fake)wgl and icd directories

15 years agogallium: remove redundant size from the constant buffer
Zack Rusin [Mon, 26 Jan 2009 20:22:53 +0000 (15:22 -0500)]
gallium: remove redundant size from the constant buffer

reuse the size of the actual buffer

15 years agogallium: it's a reference value, not a reference number
Zack Rusin [Mon, 26 Jan 2009 20:07:08 +0000 (15:07 -0500)]
gallium: it's a reference value, not a reference number

15 years agogallium: standardize api on the prefix "nr"
Zack Rusin [Mon, 26 Jan 2009 19:49:54 +0000 (14:49 -0500)]
gallium: standardize api on the prefix "nr"