mesa.git
14 years agor600: fix shadow_ambient shader
Andre Maasikas [Mon, 18 Jan 2010 10:42:10 +0000 (12:42 +0200)]
r600: fix shadow_ambient shader

rtype enums are different, DST_REG_OUTPUT got SRC_REG_CONSTANT in some
shaders and produced invalid output/hang
as TEX output is temp register always set out src to SRC_REG_TEMPORARY

14 years agoradeong: Don't allocate HW BOs for constantbufs.
Corbin Simpson [Mon, 18 Jan 2010 10:30:49 +0000 (02:30 -0800)]
radeong: Don't allocate HW BOs for constantbufs.

We have broken 1000 FPS. Hell yes.

Heavily inspired by Marek's patch, but using pipebuffer instead of
a roll-your-own malloc.

14 years agor300g: fix polygon offset
Marek Olšák [Sun, 17 Jan 2010 18:21:03 +0000 (19:21 +0100)]
r300g: fix polygon offset

As per classic r300.

Not sure why glean/polygonOffset still fails, but we do emit the same register
values as in classic.

14 years agor300g: fix vertex data swizzle
Marek Olšák [Sun, 17 Jan 2010 13:54:35 +0000 (14:54 +0100)]
r300g: fix vertex data swizzle

14 years agor300g: do not align compressed textures to a tile size
Marek Olšák [Sat, 16 Jan 2010 00:45:10 +0000 (01:45 +0100)]
r300g: do not align compressed textures to a tile size

14 years agost/egl_g3d: Clean up for x11_drawable_get_depth.
Chia-I Wu [Mon, 18 Jan 2010 09:12:50 +0000 (17:12 +0800)]
st/egl_g3d: Clean up for x11_drawable_get_depth.

Fix a wrong comment and remove an unnecessary #include.

14 years agodri: Add an MSAA-enabled factor to DRI configs.
Corbin Simpson [Mon, 18 Jan 2010 08:37:21 +0000 (00:37 -0800)]
dri: Add an MSAA-enabled factor to DRI configs.

4 samples should be enough for GLUT to be satisfied, and I think most
of the HW that does any MSAA, can do it.

Note that any pipe that doesn't multisample can just ignore the
corresponding flag in pipe_rasterizer_state.

14 years agodri: Properly calculate number of modes for MSAA.
Corbin Simpson [Mon, 18 Jan 2010 08:36:04 +0000 (00:36 -0800)]
dri: Properly calculate number of modes for MSAA.

Split from the next patch for bisection purposes only.

14 years agoradeong: Check DRM version, and report stats.
Corbin Simpson [Mon, 18 Jan 2010 08:35:11 +0000 (00:35 -0800)]
radeong: Check DRM version, and report stats.

14 years agoradeong: Use vram_size instead of vram_visible.
Corbin Simpson [Sun, 17 Jan 2010 23:57:26 +0000 (15:57 -0800)]
radeong: Use vram_size instead of vram_visible.

The kernel will decide on its own what to give us.

14 years agoprogs/egl: Pass EGLDisplay to eglCopyBuffers.
Chia-I Wu [Mon, 18 Jan 2010 08:30:07 +0000 (16:30 +0800)]
progs/egl: Pass EGLDisplay to eglCopyBuffers.

X Display was wrongly passed to eglCopyBuffers.

14 years agost/egl_g3d: Add support for eglCopyBuffers.
Chia-I Wu [Mon, 18 Jan 2010 07:28:13 +0000 (15:28 +0800)]
st/egl_g3d: Add support for eglCopyBuffers.

It uses a slow path to copy the render buffer of the surface to the
target pixmap.  We might be able to create a pipe context for
EGLDisplay's use and use a blitter context for the purpose.  It is left
for a future consideration.

14 years agost/egl_g3d: Add is_pixmap_supported to native display interface.
Chia-I Wu [Mon, 18 Jan 2010 07:49:20 +0000 (15:49 +0800)]
st/egl_g3d: Add is_pixmap_supported to native display interface.

The function may be used to support, for example,
EGL_MATCH_NATIVE_PIXMAP and EGL_KHR_image_pixmap.

14 years agost/egl_g3d: Update validate to use an attachment mask.
Chia-I Wu [Mon, 18 Jan 2010 04:11:15 +0000 (12:11 +0800)]
st/egl_g3d: Update validate to use an attachment mask.

A validate call asks for the buffers of a native surface.  Using a mask
to represent the interested buffers is more intuitive.  It also rules
out corner cases such as a single attachment being listed multiple
times.

14 years agost/vega: Fix window resizing with egl_g3d.
Chia-I Wu [Mon, 18 Jan 2010 04:05:25 +0000 (12:05 +0800)]
st/vega: Fix window resizing with egl_g3d.

egl_g3d calls st_set_framebuffer_surface on window resize.  It updates
the renderbuffer's geometry and makes st_resize_framebuffer a no-op.
This commit improves the no-op check a little bit.  It can do better
after gallium-fb-dimensions is merged.

14 years agost/vega: Call screen->update_buffer instead of winsys->update_buffer.
Chia-I Wu [Fri, 15 Jan 2010 09:52:10 +0000 (17:52 +0800)]
st/vega: Call screen->update_buffer instead of winsys->update_buffer.

This removes the last reference to winsys and is per mesa/st.

14 years agotgsi: Add missing semantic name in text parser.
Chia-I Wu [Fri, 15 Jan 2010 09:59:16 +0000 (17:59 +0800)]
tgsi: Add missing semantic name in text parser.

This time, INSTANCEID is missing...

14 years agocso: Add set_vertex_samplers function
Jakob Bornecrantz [Mon, 18 Jan 2010 00:07:24 +0000 (00:07 +0000)]
cso: Add set_vertex_samplers function

14 years agosoftpipe: Fix leak in vbuf draw module
Jakob Bornecrantz [Mon, 18 Jan 2010 00:04:48 +0000 (00:04 +0000)]
softpipe: Fix leak in vbuf draw module

14 years agonv50: implement instanced drawing
Christoph Bumiller [Sun, 17 Jan 2010 16:37:55 +0000 (17:37 +0100)]
nv50: implement instanced drawing

Too bad we don't have hw array divisors or a method for
setting startInstance.

14 years agosoftpipe: Move st/python's malloc winsys to softpipe
Jakob Bornecrantz [Sun, 17 Jan 2010 14:18:26 +0000 (14:18 +0000)]
softpipe: Move st/python's malloc winsys to softpipe

Users of softpipe can still specify thier own winsys
but now there is a default one also that uses malloc.
This allows the malloc winsys to be shared with other
users of softpipe.

14 years agost/xlib: Make glXGetProcAddressARB visible
Jakob Bornecrantz [Sun, 17 Jan 2010 16:24:53 +0000 (16:24 +0000)]
st/xlib: Make glXGetProcAddressARB visible

14 years agogallium: Support swig "compiler" in p_compiler.h
Jakob Bornecrantz [Sun, 17 Jan 2010 14:40:49 +0000 (14:40 +0000)]
gallium: Support swig "compiler" in p_compiler.h

14 years agoi965g: Link against drm_intel instead of drm_radeon
Jakob Bornecrantz [Sun, 17 Jan 2010 12:21:56 +0000 (12:21 +0000)]
i965g: Link against drm_intel instead of drm_radeon

14 years agor300g: Check for bogus texture targets.
Corbin Simpson [Sun, 17 Jan 2010 09:13:45 +0000 (01:13 -0800)]
r300g: Check for bogus texture targets.

14 years agor300g: fix the rasterization of secondary color
Marek Olšák [Sun, 17 Jan 2010 03:49:07 +0000 (04:49 +0100)]
r300g: fix the rasterization of secondary color

When the secondary color is used, the primary color must always be rasterized
regardless of whether it is used or not.

14 years agor300g: fix vertex colors with 8 bits per channel
Marek Olšák [Sun, 17 Jan 2010 03:41:51 +0000 (04:41 +0100)]
r300g: fix vertex colors with 8 bits per channel

The piglit BGRA tests pass now.

14 years agor300g: simplify is_format_supported
Marek Olšák [Sun, 17 Jan 2010 01:25:50 +0000 (02:25 +0100)]
r300g: simplify is_format_supported

14 years agor300g: output texture debug messages if only RADEON_DEBUG=tex is set
Marek Olšák [Sat, 9 Jan 2010 18:19:44 +0000 (19:19 +0100)]
r300g: output texture debug messages if only RADEON_DEBUG=tex is set

14 years agor300g: move debug flags into r300_screen
Marek Olšák [Sat, 9 Jan 2010 17:38:54 +0000 (18:38 +0100)]
r300g: move debug flags into r300_screen

14 years agor300g: disable the MIP filter for NPOT textures
Marek Olšák [Fri, 15 Jan 2010 23:48:53 +0000 (00:48 +0100)]
r300g: disable the MIP filter for NPOT textures

Safety first.

14 years agor300g: fix the CS size when emitting invariant state
Marek Olšák [Fri, 15 Jan 2010 23:56:33 +0000 (00:56 +0100)]
r300g: fix the CS size when emitting invariant state

14 years agoradeon_compiler: include main/compiler.h for compiler portability macros
Alan Coopersmith [Sun, 17 Jan 2010 08:55:39 +0000 (00:55 -0800)]
radeon_compiler: include main/compiler.h for compiler portability macros

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
14 years agor300g: Stop using indices.
Corbin Simpson [Sun, 17 Jan 2010 02:16:26 +0000 (18:16 -0800)]
r300g: Stop using indices.

Sorry, it was a good game, but it just doesn't work.

14 years agor300g: Respect fill modes in indices fallback.
Corbin Simpson [Sun, 17 Jan 2010 01:45:34 +0000 (17:45 -0800)]
r300g: Respect fill modes in indices fallback.

14 years agoutil: add generic ringbuffer utitilty
Keith Whitwell [Sat, 16 Jan 2010 21:11:01 +0000 (21:11 +0000)]
util: add generic ringbuffer utitilty

14 years agogallium: Fix uninitialized instance divisor and index.
Chia-I Wu [Sat, 16 Jan 2010 17:16:11 +0000 (18:16 +0100)]
gallium: Fix uninitialized instance divisor and index.

14 years agonv50: fix tile flags for scanout tex usage
Christoph Bumiller [Sat, 16 Jan 2010 16:58:35 +0000 (17:58 +0100)]
nv50: fix tile flags for scanout tex usage

14 years agonv50: handle all and more system values
Christoph Bumiller [Sat, 16 Jan 2010 14:39:32 +0000 (15:39 +0100)]
nv50: handle all and more system values

14 years agonv50: hook up geometry programs
Christoph Bumiller [Sat, 16 Jan 2010 12:25:55 +0000 (13:25 +0100)]
nv50: hook up geometry programs

14 years agonv50: support for geometry programs in nv50_program
Christoph Bumiller [Sat, 16 Jan 2010 10:36:03 +0000 (11:36 +0100)]
nv50: support for geometry programs in nv50_program

14 years agonv50: get access to primitive input space
Christoph Bumiller [Sat, 16 Jan 2010 15:57:34 +0000 (16:57 +0100)]
nv50: get access to primitive input space

Vertex data in geometry programs is located in p[] space.
The base address in p[] for vertex i is located in vertex
attribute space, i.e. a[i << 2].

This means p[] is always accessed with an address register,
and I had to to mess with their allocation once again.

Also fixes negative offsets e.g. CONST[ADDR[0].x - 3].

14 years agor600: remove stray END_BATCH in blit code
Alex Deucher [Sat, 16 Jan 2010 13:45:08 +0000 (08:45 -0500)]
r600: remove stray END_BATCH in blit code

14 years agodraw: Fix memory leak in gs code
Jakob Bornecrantz [Sat, 16 Jan 2010 09:30:28 +0000 (09:30 +0000)]
draw: Fix memory leak in gs code

14 years agoi965g: make xorg state tracker build i965g_drv.so
Dave Airlie [Sat, 16 Jan 2010 09:28:45 +0000 (19:28 +1000)]
i965g: make xorg state tracker build i965g_drv.so

don't make modesetting_drv.so anymore

14 years agor600: improve blit support
Alex Deucher [Sat, 16 Jan 2010 03:56:55 +0000 (22:56 -0500)]
r600: improve blit support

- fill in more src/dst formats
- disable depth copies for now
- set proper data formats in render target regs
- fill in additional default state

The swizzles on some of the less used mesa formats
are probably wrong.

14 years agor600: add initial blit support
Andre Maasikas [Sat, 16 Jan 2010 02:23:31 +0000 (21:23 -0500)]
r600: add initial blit support

14 years agor600: add r600_blit.c
Alex Deucher [Fri, 15 Jan 2010 21:41:27 +0000 (16:41 -0500)]
r600: add r600_blit.c

Unfinished.

14 years agonouveau: nv30: Remove useless variables fs, txp. Also do not change txf, as bit 13...
Patrice Mandin [Fri, 15 Jan 2010 21:29:13 +0000 (22:29 +0100)]
nouveau: nv30: Remove useless variables fs, txp. Also do not change txf, as bit 13 is in the texture format

Signed-off-by: Patrice Mandin <patmandin@gmail.com>
14 years agoutil: Handle FORMAT_Z32_FLOAT in util_pack_z().
Michal Krol [Fri, 15 Jan 2010 16:43:04 +0000 (17:43 +0100)]
util: Handle FORMAT_Z32_FLOAT in util_pack_z().

14 years agoutil: Handle the remaining formats in pipe_put_tile_rgba().
Michal Krol [Fri, 15 Jan 2010 16:42:38 +0000 (17:42 +0100)]
util: Handle the remaining formats in pipe_put_tile_rgba().

14 years agoutil: Fix encoding for R8G8B8A8_UNORM formats and friends.
Michal Krol [Fri, 15 Jan 2010 16:42:07 +0000 (17:42 +0100)]
util: Fix encoding for R8G8B8A8_UNORM formats and friends.

14 years agotgsi: Add ureg_property_gs_input_prim().
Michal Krol [Fri, 15 Jan 2010 13:05:04 +0000 (14:05 +0100)]
tgsi: Add ureg_property_gs_input_prim().

14 years agotgsi: Add ureg_src_dimension().
Michal Krol [Fri, 15 Jan 2010 12:32:55 +0000 (13:32 +0100)]
tgsi: Add ureg_src_dimension().

14 years agoregress: Add .gitgnore for *.png files.
Michal Krol [Mon, 11 Jan 2010 19:53:28 +0000 (20:53 +0100)]
regress: Add .gitgnore for *.png files.

14 years agodraw: Add missing header include.
Michal Krol [Fri, 15 Jan 2010 11:20:39 +0000 (12:20 +0100)]
draw: Add missing header include.

14 years agogallium: document set_constant_buffer
Roland Scheidegger [Fri, 15 Jan 2010 17:25:14 +0000 (18:25 +0100)]
gallium: document set_constant_buffer

14 years agoMerge branch 'gallium-noconstbuf'
Roland Scheidegger [Fri, 15 Jan 2010 17:09:45 +0000 (18:09 +0100)]
Merge branch 'gallium-noconstbuf'

Conflicts:
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/mesa/state_tracker/st_draw_feedback.c

14 years agogallium: remove set_edgeflags from docs
Roland Scheidegger [Fri, 15 Jan 2010 16:55:42 +0000 (17:55 +0100)]
gallium: remove set_edgeflags from docs

14 years agoconfigs: remove -ansi from linux-debug
Brian Paul [Fri, 15 Jan 2010 16:02:52 +0000 (09:02 -0700)]
configs: remove -ansi from linux-debug

-ansi implies -std=c89 but that conflicts with the -std=c99 flag
which is also provided.

Allows the r300g driver to compile.

14 years agotgsi: Fix sanity checks for indirect registers.
Michal Krol [Fri, 15 Jan 2010 10:40:03 +0000 (11:40 +0100)]
tgsi: Fix sanity checks for indirect registers.

14 years agost/egl_g3d: Avoid validation upon buffer swap or flush frontbuffer.
Chia-I Wu [Fri, 15 Jan 2010 10:10:54 +0000 (18:10 +0800)]
st/egl_g3d: Avoid validation upon buffer swap or flush frontbuffer.

With screen->update_buffer being hooked, leave the job to the state
trackers.

14 years agost/egl_g3d: Hook to update_buffer of the pipe screen.
Chia-I Wu [Fri, 15 Jan 2010 09:45:52 +0000 (17:45 +0800)]
st/egl_g3d: Hook to update_buffer of the pipe screen.

It is a notification from the client APIs that the surface size might
have changed.

14 years agost/egl_g3d: Always override flush_frontbuffer.
Chia-I Wu [Fri, 15 Jan 2010 09:39:49 +0000 (17:39 +0800)]
st/egl_g3d: Always override flush_frontbuffer.

Instead of letting the native displays install their own version of
flush_frontbuffer, always override the callback with a version that
calls the flush_frontbuffer of the native surface.

14 years agost/mesa: Initialise vertex element instance divisor to 0.
Michal Krol [Fri, 15 Jan 2010 06:52:18 +0000 (07:52 +0100)]
st/mesa: Initialise vertex element instance divisor to 0.

14 years agodraw: Add GALLIUM_DUMP_VS environment variable.
Luca Barbieri [Fri, 15 Jan 2010 06:28:18 +0000 (07:28 +0100)]
draw: Add GALLIUM_DUMP_VS environment variable.

Add GALLIUM_DUMP_VS to dump the vertex shader to the console like
GALLIUM_DUMP_FS in softpipe.

14 years agor300g: Build driver by default
Jakob Bornecrantz [Thu, 14 Jan 2010 22:51:25 +0000 (22:51 +0000)]
r300g: Build driver by default

Do the auto trick that is used for both i915, i965 and svga.

14 years agoMerge branch 'mesa_7_7_branch'
Jakob Bornecrantz [Thu, 14 Jan 2010 22:31:04 +0000 (22:31 +0000)]
Merge branch 'mesa_7_7_branch'

Conflicts:
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/auxiliary/util/Makefile
src/gallium/drivers/r300/r300_state_derived.c

14 years agogallium: Document drawing commands.
Michal Krol [Thu, 14 Jan 2010 17:55:52 +0000 (18:55 +0100)]
gallium: Document drawing commands.

14 years agoMerge branch 'instanced-arrays'
Michal Krol [Thu, 14 Jan 2010 17:11:41 +0000 (18:11 +0100)]
Merge branch 'instanced-arrays'

Conflicts:
src/gallium/drivers/softpipe/sp_draw_arrays.c

14 years agor300g: Cleanup from last few commits.
Corbin Simpson [Thu, 14 Jan 2010 16:25:46 +0000 (08:25 -0800)]
r300g: Cleanup from last few commits.

Strangely enough, the code solidified pretty quickly.

14 years agor300g: Really destroy translated buffer at the end.
Łukasz Krotowski [Thu, 14 Jan 2010 09:05:02 +0000 (10:05 +0100)]
r300g: Really destroy translated buffer at the end.

Note that indexSize is changed by r300_translate_elts(). Also make sure
it's destroyed on errors.

14 years agoprogs/trivial: test user clip plane in tri-point-line-clipped.c
Brian Paul [Thu, 14 Jan 2010 16:38:47 +0000 (09:38 -0700)]
progs/trivial: test user clip plane in tri-point-line-clipped.c

14 years agoprogs/trivial: test glPolygonMode(POINT/LINE) with frustum clipping
Brian Paul [Thu, 14 Jan 2010 16:21:18 +0000 (09:21 -0700)]
progs/trivial: test glPolygonMode(POINT/LINE) with frustum clipping

Note whether the new verts introduced by clipping show up as points
and lines along the edge of the window...

14 years agogallium/util: silence warning about array initializers
Brian Paul [Thu, 14 Jan 2010 01:24:15 +0000 (18:24 -0700)]
gallium/util: silence warning about array initializers

14 years agoegl_g3d: Check if the creation of pipe or st context fails.
Chia-I Wu [Thu, 14 Jan 2010 09:29:12 +0000 (17:29 +0800)]
egl_g3d: Check if the creation of pipe or st context fails.

It should not return an incomplete EGLContext to the users.

14 years agost/egl_g3d: Use a sequence number to decide if validation is required.
Chia-I Wu [Tue, 12 Jan 2010 10:08:02 +0000 (18:08 +0800)]
st/egl_g3d: Use a sequence number to decide if validation is required.

It is not safe to assume that the native surface has not changed since
the last validation by checking the geometry alone.  Add a sequence
number to "validate" callback for that purpose.  This is inspired by
Luca Barbieri's work.

14 years agost/mesa: Remove unnecessary header from st_program.c.
Vinson Lee [Thu, 14 Jan 2010 07:28:00 +0000 (23:28 -0800)]
st/mesa: Remove unnecessary header from st_program.c.

14 years agost/mesa: Remove unnecessary header from st_texture.c.
Vinson Lee [Thu, 14 Jan 2010 07:16:05 +0000 (23:16 -0800)]
st/mesa: Remove unnecessary header from st_texture.c.

14 years agoswrast: Remove unnecessary header from s_accum.c.
Vinson Lee [Thu, 14 Jan 2010 07:01:03 +0000 (23:01 -0800)]
swrast: Remove unnecessary header from s_accum.c.

14 years agoswrast: Remove unnecessary header from s_atifragshader.c.
Vinson Lee [Thu, 14 Jan 2010 06:58:07 +0000 (22:58 -0800)]
swrast: Remove unnecessary header from s_atifragshader.c.

14 years agoswrast: Remove unnecessary header from s_bitmap.c.
Vinson Lee [Thu, 14 Jan 2010 06:45:54 +0000 (22:45 -0800)]
swrast: Remove unnecessary header from s_bitmap.c.

14 years agoswrast: Remove unnecessary headers from s_copypix.c.
Vinson Lee [Thu, 14 Jan 2010 06:43:16 +0000 (22:43 -0800)]
swrast: Remove unnecessary headers from s_copypix.c.

14 years agoswrast: Remove unnecessary header from s_depth.c.
Vinson Lee [Thu, 14 Jan 2010 06:36:01 +0000 (22:36 -0800)]
swrast: Remove unnecessary header from s_depth.c.

14 years agoswrast: Remove unnecessary header from s_drawpix.c.
Vinson Lee [Thu, 14 Jan 2010 06:30:04 +0000 (22:30 -0800)]
swrast: Remove unnecessary header from s_drawpix.c.

14 years agoswrast: Remove unnecessary header from s_feedback.c.
Vinson Lee [Thu, 14 Jan 2010 06:20:44 +0000 (22:20 -0800)]
swrast: Remove unnecessary header from s_feedback.c.

14 years agogallium/docs: Random things sitting around in my stash.
Corbin Simpson [Thu, 14 Jan 2010 04:46:53 +0000 (20:46 -0800)]
gallium/docs: Random things sitting around in my stash.

14 years agor300g: Use indices to translate index buffers of ubytes.
Corbin Simpson [Thu, 14 Jan 2010 04:44:49 +0000 (20:44 -0800)]
r300g: Use indices to translate index buffers of ubytes.

progs/redbook/aapoly, among others, works fine now.

14 years agoradeong: Change DRI driver name to radeong.
Corbin Simpson [Thu, 14 Jan 2010 02:37:17 +0000 (18:37 -0800)]
radeong: Change DRI driver name to radeong.

14 years agor300g: Disable immediate mode rendering for now.
Corbin Simpson [Thu, 14 Jan 2010 02:36:54 +0000 (18:36 -0800)]
r300g: Disable immediate mode rendering for now.

Will re-enable when the bugs are ironed out.

14 years agogallium/draw: s/clipper/clip_stage/ to be consistant with other stages
Brian Paul [Wed, 13 Jan 2010 23:55:54 +0000 (16:55 -0700)]
gallium/draw: s/clipper/clip_stage/ to be consistant with other stages

14 years agogallium/draw: whitespace and comments
Brian Paul [Wed, 13 Jan 2010 23:54:00 +0000 (16:54 -0700)]
gallium/draw: whitespace and comments

14 years agogallium/draw: remove always-true conditional
Brian Paul [Wed, 13 Jan 2010 23:48:57 +0000 (16:48 -0700)]
gallium/draw: remove always-true conditional

14 years agogallium: remove forward struct decl
Brian Paul [Wed, 13 Jan 2010 23:46:53 +0000 (16:46 -0700)]
gallium: remove forward struct decl

Other struct types (like pipe_texture) are referenced before they're
defined so no reason to special-case this one.

14 years agoDRI2: don't send DRI2 requests the server doesn't know about
Jesse Barnes [Thu, 14 Jan 2010 00:01:51 +0000 (19:01 -0500)]
DRI2: don't send DRI2 requests the server doesn't know about

At init time, NULL out the hooks that send the server new requests.
DRI2 never supported these extensions, so this preserves old behavior on
old servers with new Mesa.

14 years agoGLX/DRI2: pass X drawable ID instead
Jesse Barnes [Wed, 13 Jan 2010 23:42:55 +0000 (18:42 -0500)]
GLX/DRI2: pass X drawable ID instead

These happened to be the same in my testing since I was using apps that
depend on the GLX 1.2 behavior where X and GLX drawables are
interchangeable.

14 years agoGLX: use glproto CFLAGS etc. when building
Jesse Barnes [Wed, 13 Jan 2010 20:48:14 +0000 (15:48 -0500)]
GLX: use glproto CFLAGS etc. when building

Roll the glproto check into the dri2proto and libdrm check so we get the
proper CFLAGS and LDFLAGS for the package.

14 years agost/dri: Make sure we always request a fake front.
Thomas Hellstrom [Wed, 13 Jan 2010 16:40:41 +0000 (17:40 +0100)]
st/dri: Make sure we always request a fake front.

This should be the correct, but sub-optimal way to handle things on
pre-1.7 servers. For servers that automatically adds a fake front
we should never request the fake front and handle the reply differently.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
14 years agosvga: Fix compile_vs error code.
José Fonseca [Wed, 13 Jan 2010 13:40:09 +0000 (13:40 +0000)]
svga: Fix compile_vs error code.

It could erroneously return PIPE_OK in some circumstances.

Make compile_fs code identical.

14 years agosvga: Fix call to translate::run().
Michal Krol [Wed, 13 Jan 2010 10:13:00 +0000 (11:13 +0100)]
svga: Fix call to translate::run().