mesa.git
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 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 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: 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 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 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"

15 years agogallium: standardize naming of masks
Zack Rusin [Mon, 26 Jan 2009 19:37:21 +0000 (14:37 -0500)]
gallium: standardize naming of masks

15 years agogallium: standardize on stride instead of pitch in the interface
Zack Rusin [Mon, 26 Jan 2009 18:45:45 +0000 (13:45 -0500)]
gallium: standardize on stride instead of pitch in the interface

15 years agotgsi: silence some warnings
Keith Whitwell [Tue, 27 Jan 2009 11:15:52 +0000 (11:15 +0000)]
tgsi: silence some warnings

15 years agodraw: silence some warnings
Keith Whitwell [Tue, 27 Jan 2009 11:15:42 +0000 (11:15 +0000)]
draw: silence some warnings

15 years agoi915: queiten compiler warnings
Keith Whitwell [Mon, 26 Jan 2009 12:47:02 +0000 (12:47 +0000)]
i915: queiten compiler warnings

15 years agofailover: queiten compiler warnings
Keith Whitwell [Mon, 26 Jan 2009 12:45:54 +0000 (12:45 +0000)]
failover: queiten compiler warnings

15 years agodraw: queiten compiler warnings
Keith Whitwell [Mon, 26 Jan 2009 12:42:23 +0000 (12:42 +0000)]
draw: queiten compiler warnings

15 years agoscons: remove pedantic flag
Keith Whitwell [Mon, 26 Jan 2009 12:12:38 +0000 (12:12 +0000)]
scons: remove pedantic flag

15 years agoegl: compilation fix
Zack Rusin [Mon, 26 Jan 2009 19:37:08 +0000 (14:37 -0500)]
egl: compilation fix

15 years agoscons: Request the stabs debug info format for Mingw.
José Fonseca [Mon, 26 Jan 2009 20:16:36 +0000 (20:16 +0000)]
scons: Request the stabs debug info format for Mingw.

Mingw gdb apparently chokes on dwarf debug info.

15 years agoglut: Minor cleanups.
José Fonseca [Mon, 26 Jan 2009 10:44:34 +0000 (10:44 +0000)]
glut: Minor cleanups.

15 years agonv20: rewrite vertex layout
Pekka Paalanen [Mon, 26 Jan 2009 19:15:48 +0000 (21:15 +0200)]
nv20: rewrite vertex layout

NV20 seems to be very different to NV10. In vertex array, pos is first,
not last. There are maximum 16 attributes and only few are currently
known.

This makes trivial/tri work on NV20.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agonv20: adjust initial hw context
Pekka Paalanen [Mon, 26 Jan 2009 19:10:14 +0000 (21:10 +0200)]
nv20: adjust initial hw context

VIEWPORT_SCALE0 seems to do with translation and the sane
value for x and y is zero.
VIEWPORT_SCALE1 is still a mystery.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agogallium: updated comments in st_extensions.c
Brian Paul [Mon, 26 Jan 2009 19:31:02 +0000 (12:31 -0700)]
gallium: updated comments in st_extensions.c

15 years agog3dvl: Remove dead links to files that are now in libnouveaudrm.
Younes Manton [Sat, 24 Jan 2009 21:15:51 +0000 (16:15 -0500)]
g3dvl: Remove dead links to files that are now in libnouveaudrm.

15 years agonouveau: fix st_get_framebuffer_surface() breakage
Pekka Paalanen [Sat, 24 Jan 2009 17:56:13 +0000 (19:56 +0200)]
nouveau: fix st_get_framebuffer_surface() breakage

Someone changed the st_get_framebuffer_surface() signature, and did not
update the users in Nouveau winsys. Surface is returned via a pointer
now instead of returning it from the function. No semantic changes.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agomesa: declare pipe_texture in st_public.h
Pekka Paalanen [Sat, 24 Jan 2009 17:33:21 +0000 (19:33 +0200)]
mesa: declare pipe_texture in st_public.h

Fixes:
In file included from nouveau_context_dri.c:6:
../../../../../../src/mesa/state_tracker/st_public.h:87: warning:
'struct pipe_texture' declared inside parameter list
../../../../../../src/mesa/state_tracker/st_public.h:87: warning: its
scope is only this definition or declaration, which is probably not what
you want
../../../../../../src/mesa/state_tracker/st_public.h:104: warning:
'struct pipe_texture' declared inside parameter list

Signed-off-by: Pekka Paalanen <pq@iki.fi>
15 years agoglew: Build it as a static lib.
José Fonseca [Sat, 24 Jan 2009 16:54:59 +0000 (16:54 +0000)]
glew: Build it as a static lib.

15 years agoprogs: Fix isosurf.
José Fonseca [Sat, 24 Jan 2009 16:47:50 +0000 (16:47 +0000)]
progs: Fix isosurf.

15 years agoprogs: Port most of the demos to glew.
José Fonseca [Sat, 24 Jan 2009 16:39:49 +0000 (16:39 +0000)]
progs: Port most of the demos to glew.

A couple of test weren't ported due to glew breakage -- it undefines
GLAPIENTRY.

15 years agoscons: Build the progs into seperate dirs as well.
José Fonseca [Sat, 24 Jan 2009 15:56:28 +0000 (15:56 +0000)]
scons: Build the progs into seperate dirs as well.

15 years agoglut: Automatic library linkage only on MSVC.
José Fonseca [Sat, 24 Jan 2009 15:32:01 +0000 (15:32 +0000)]
glut: Automatic library linkage only on MSVC.

15 years agoscons: Use --enable-stdcall-fixup only when building DLLs.
José Fonseca [Sat, 24 Jan 2009 14:33:54 +0000 (14:33 +0000)]
scons: Use --enable-stdcall-fixup only when building DLLs.

15 years agoglut: Use a new define GLUT_STATIC to distinguish static builds.
José Fonseca [Sat, 24 Jan 2009 13:52:02 +0000 (13:52 +0000)]
glut: Use a new define GLUT_STATIC to distinguish static builds.

_DLL is defined by MSVC when building against a DLL version of the CRT
library. It bears no relation to whether we are building a DLL or not. That
is, we can build a DLL against a static CRT, or a static lib against a
dynamicaly linked CRT. See more detail at
http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx

This gets DLL version of glut linking correctly both with MinGW and MSVC.

PS: GL/gl.h (and others) must be fixed too.

15 years agoglut: Ensure windows.h is included on windows.
José Fonseca [Sat, 24 Jan 2009 12:47:02 +0000 (12:47 +0000)]
glut: Ensure windows.h is included on windows.

Trying to override windows headers is a recipe for disaster. Especially
when using with glew. Also the windows headers in recent MinGW are complete
enough that they don't need patching up.

15 years agoscons: Don't build the DRI drivers in a seperate dir.
José Fonseca [Sat, 24 Jan 2009 10:28:39 +0000 (10:28 +0000)]
scons: Don't build the DRI drivers in a seperate dir.

DRI drivers can be build side by side with other non-DRI drivers, therefore
there is no need to build gallium twice.

15 years agoscons: Use a cache for built files.
José Fonseca [Fri, 23 Jan 2009 21:01:16 +0000 (21:01 +0000)]
scons: Use a cache for built files.

Like ccache, but works on all OSes.

15 years agowgl: Adapt for st_get_framebuffer_surface call change.
José Fonseca [Fri, 23 Jan 2009 21:00:53 +0000 (21:00 +0000)]
wgl: Adapt for st_get_framebuffer_surface call change.

15 years agoscons: Allow to specify the MSVS version on command line.
José Fonseca [Fri, 23 Jan 2009 16:25:37 +0000 (16:25 +0000)]
scons: Allow to specify the MSVS version on command line.

15 years agoprogs: Port vp-tris to glew.
José Fonseca [Fri, 23 Jan 2009 16:24:43 +0000 (16:24 +0000)]
progs: Port vp-tris to glew.

There was some wglGetProcAddress calls to setup extensions already, but
including glext caused many compilation errors in MinGW.

15 years agogallium: change the st_get_framebuffer_surface/texture functions
Alan Hourihane [Fri, 23 Jan 2009 16:04:57 +0000 (16:04 +0000)]
gallium: change the st_get_framebuffer_surface/texture functions
to return TRUE/FALSE if the st_framebuffer is valid, and if it is
return the surface/texture in the passed pointer.

15 years agoprogs: Ignore more output executables.
José Fonseca [Fri, 23 Jan 2009 14:37:35 +0000 (14:37 +0000)]
progs: Ignore more output executables.

15 years agoprogs/trivial: Use glew where needed.
José Fonseca [Fri, 23 Jan 2009 14:35:36 +0000 (14:35 +0000)]
progs/trivial: Use glew where needed.

Builds on windows now.

15 years agoglew: Initial import.
José Fonseca [Fri, 23 Jan 2009 12:32:35 +0000 (12:32 +0000)]
glew: Initial import.

From glew 1.5.1 release.

15 years agoglut: Do not rely on GLAPIENTRY symbol.
José Fonseca [Fri, 23 Jan 2009 12:27:10 +0000 (12:27 +0000)]
glut: Do not rely on GLAPIENTRY symbol.

GLEW does some defining/undefining of GLAPIENTRY making it unreliable. GLEW
should also be fixed, but removing the dependency on this symbol.

This also restores the ability for GLUT to be used with -fvisibility=hidden.
The downside of this is that ld warns of:

  Warning: size of symbol `glutBitmapXXXXX' changed from 4 in glut_xxx.o to 16 in glut_xxxx.o

Due to the fonts being declared void * (*4 bytes), but defined as 16byte static
structure. I'll fix that in a later commit.

See also commits:
 - f321f16e83cae427d6496c11955fd1c898d0395c
 - d084982240bafba0169c4a6cacf02d45d6cfd8c1

15 years agoglut: Don't include mesa_wgl.h on MinGW builds.
José Fonseca [Thu, 22 Jan 2009 14:29:01 +0000 (14:29 +0000)]
glut: Don't include mesa_wgl.h on MinGW builds.

windows.h header recent MinGW versions already declare the WGL API, and
including mesa_wgl.h actually cause build failures.

15 years agoscons: Don't define UNICODE on windows builds.
José Fonseca [Thu, 22 Jan 2009 14:26:30 +0000 (14:26 +0000)]
scons: Don't define UNICODE on windows builds.

It creates problems in many libraries (glut, glew) which are not unicode
aware.

15 years agoMerge commit 'origin/master' into gallium-0.2
Alan Hourihane [Thu, 22 Jan 2009 09:43:42 +0000 (09:43 +0000)]
Merge commit 'origin/master' into gallium-0.2

Conflicts:
windows/VC8/mesa/osmesa/osmesa.vcproj
windows/VC8/progs/demos/gears.vcproj
windows/VC8/progs/progs.sln

15 years agoi915: Add decode for PS in batchbuffers.
Eric Anholt [Tue, 13 Jan 2009 20:50:38 +0000 (12:50 -0800)]
i915: Add decode for PS in batchbuffers.

15 years agoi965: Remove gratuitous whitespace in INTEL_DEBUG=wm output.
Eric Anholt [Fri, 9 Jan 2009 03:15:04 +0000 (19:15 -0800)]
i965: Remove gratuitous whitespace in INTEL_DEBUG=wm output.

15 years agoi965: Use _mesa_num_inst_src_regs() instead of keeping a copy of its contents.
Eric Anholt [Fri, 9 Jan 2009 03:00:10 +0000 (19:00 -0800)]
i965: Use _mesa_num_inst_src_regs() instead of keeping a copy of its contents.

15 years agonouveau: Map correct mip level when using the shadow (nv30, nv40).
Younes Manton [Wed, 21 Jan 2009 21:55:35 +0000 (16:55 -0500)]
nouveau: Map correct mip level when using the shadow (nv30, nv40).

15 years agonouveau: nv30 does not support separate blend functions for alpha and rgb
Patrice Mandin [Wed, 21 Jan 2009 20:59:10 +0000 (21:59 +0100)]
nouveau: nv30 does not support separate blend functions for alpha and rgb

15 years ago[intel] Remove remaining references to intel_wait_flips().
Kristian Høgsberg [Wed, 21 Jan 2009 16:47:01 +0000 (11:47 -0500)]
[intel] Remove remaining references to intel_wait_flips().

Oops.

15 years agowindows: fix output dir for glut project file
Thomas Henn [Wed, 21 Jan 2009 16:31:58 +0000 (09:31 -0700)]
windows: fix output dir for glut project file

15 years agoswrast: fix redundant texture application in affine_textured_triangle().
Brian Paul [Wed, 21 Jan 2009 16:05:02 +0000 (09:05 -0700)]
swrast: fix redundant texture application in affine_textured_triangle().

This function does simple texture mapping so disable normal texture mapping
before we call _swrast_write_rgba_span() so that we don't do it twice.

15 years agomesa: add some debug assertions to detect null current texture object pointers
Brian Paul [Wed, 21 Jan 2009 15:18:07 +0000 (08:18 -0700)]
mesa: add some debug assertions to detect null current texture object pointers

See bug #17895.  These assertions could be removed when this is resolved.

15 years agowindows: another round of VC8 project file updates
Karl Schultz [Wed, 21 Jan 2009 14:59:11 +0000 (07:59 -0700)]
windows: another round of VC8 project file updates

New static configs generate DLLs that do not have a dependency on the MSCVR*
DLL's.

15 years agoRevert "windows: new VC8 projects statically linked against libcmt"
Brian Paul [Wed, 21 Jan 2009 14:57:45 +0000 (07:57 -0700)]
Revert "windows: new VC8 projects statically linked against libcmt"

This reverts commit bbda892c551e7d3f2d94cc877cc6e80f8568fa99.

Static configs rolled into regular project files (in next commit).
Provided by Karl Schultz.

15 years agoprogs: Ignores
Jakob Bornecrantz [Wed, 21 Jan 2009 14:01:13 +0000 (15:01 +0100)]
progs: Ignores

15 years agodocs: document glXMakeContextCurrent() and Windows fixes
Brian Paul [Tue, 20 Jan 2009 22:36:01 +0000 (15:36 -0700)]
docs: document glXMakeContextCurrent() and Windows fixes

15 years agoFix issues with glXMakeContextCurrent and glXMakeCurrentReadSGI
Ian Romanick [Tue, 20 Jan 2009 21:55:18 +0000 (13:55 -0800)]
Fix issues with glXMakeContextCurrent and glXMakeCurrentReadSGI

There were several bugs in the infrastructure for these two routines.

1. GLX_ALIAS was incorrectly used.  The function and its alias must be
identical!  glXMakeContextCurrent / glXMakeCurrentReadSGI and
MakeContextCurrent had different parameters.  This caused the last
parameter of MakeContextCurrent to get random values.

2. We based the implementation of glXMakeContextCurrent on the manual
page instead of the GLX spec.  The GLX spec says that
glXMakeContextCurrent can be passed a Window as a drawable.  When this
happens, it will behave just like glXMakeCurrentReadSGI or
glXMakeCurrent.

3. If there was a problem finding or creating the DRI drawable,
MakeContextCurrent would crash instead of returning an error.

This commit fixes all three issues, and fixes bug #18367 and bug #19625.

15 years agoi915: Fix gem backend after surface changes
Jakob Bornecrantz [Tue, 20 Jan 2009 18:08:52 +0000 (19:08 +0100)]
i915: Fix gem backend after surface changes

15 years ago[intel] Go back to using the typedef for the sarea struct
Timo Aaltonen [Tue, 20 Jan 2009 16:45:35 +0000 (11:45 -0500)]
[intel] Go back to using the typedef for the sarea struct

The upstream linux kernel headers and libdrm kernel headers disagree on the
tag name for the sarea struct: _drm_i915_sarea vs drm_i915_sarea.  They
both typedef it to drm_i915_sarea_t though, so just use that.

15 years agoRemove intel pageflipping support in its entirety.
Owain G. Ainsworth [Wed, 14 Jan 2009 01:14:32 +0000 (01:14 +0000)]
Remove intel pageflipping support in its entirety.

It's been broken and deprecated for a while, so it's time to die. This has the
wonderful benefit of cleaning up the code a fair amount; making it marginally
less twisty.

I'm unsure if the for loops in IntelWindowMoved are still needed.

15 years agoglsl: silence unused var warnings
Brian Paul [Tue, 20 Jan 2009 16:21:32 +0000 (09:21 -0700)]
glsl: silence unused var warnings