platform/upstream/mesa.git
15 years agomesa/dri: Remove extension_helper.h.
Chia-I Wu [Thu, 8 Oct 2009 03:52:11 +0000 (11:52 +0800)]
mesa/dri: Remove extension_helper.h.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agomesa: Enable remap table in core.
Chia-I Wu [Thu, 8 Oct 2009 02:33:57 +0000 (10:33 +0800)]
mesa: Enable remap table in core.

This enables the remap table in core.  driInitExtensions is adapted to
use the remap table.  All uses of extension_helper.h are replaced by
remap_helper.h.  The chicken-egg problem of the DRI drivers is also
solved.

It is now also possible to pass NULL extensions to driInitExtensions.
It will cause driInitExtensions to map all known functions.  This
functionality is used by software drivers and EGL_i915.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agomesa/main: Add support for remap table.
Chia-I Wu [Thu, 8 Oct 2009 02:33:32 +0000 (10:33 +0800)]
mesa/main: Add support for remap table.

This commit only adds the source files.  It is supposed to replace the
remap table in DRI drivers.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agost/xorg: lots of fixes related to compositing
Zack Rusin [Fri, 23 Oct 2009 05:05:23 +0000 (01:05 -0400)]
st/xorg: lots of fixes related to compositing

fixes transformations, rendering with multiple bound textures, xrender
matrix conversions plus some cleanups

15 years agor600: remove duplicate stride setting
Andre Maasikas [Fri, 23 Oct 2009 13:44:31 +0000 (16:44 +0300)]
r600: remove duplicate stride setting

Stride is set already in r700SetVertexFormat and there it works
correctly for 0 also

15 years agor600: for position invariant programs reading vert_pos is not always known at this...
Andre Maasikas [Fri, 23 Oct 2009 11:25:09 +0000 (14:25 +0300)]
r600: for position invariant programs reading vert_pos is not always known at this point

15 years agogallium: remove extended negate also, and also the ExtSwz token
Keith Whitwell [Fri, 23 Oct 2009 13:50:02 +0000 (14:50 +0100)]
gallium: remove extended negate also, and also the ExtSwz token

Likewise, the extended negate functionality hasn't been
used since mesa switched to using tgsi_ureg to build programs,
and has been translating the SWZ opcode internally to a single MAD.

15 years agocell: typo from ExtSwizzle commit
Keith Whitwell [Fri, 23 Oct 2009 13:38:30 +0000 (14:38 +0100)]
cell: typo from ExtSwizzle commit

15 years agogallium: remove the swizzling parts of ExtSwizzle
Keith Whitwell [Fri, 23 Oct 2009 13:31:24 +0000 (14:31 +0100)]
gallium: remove the swizzling parts of ExtSwizzle

These haven't been used by the mesa state tracker since the
conversion to tgsi_ureg, and it seems that none of the
other state trackers are using it either.

This helps simplify one of the biggest suprises when starting off with
TGSI shaders.

15 years agogallium: remove noise opcodes
Keith Whitwell [Fri, 23 Oct 2009 12:49:04 +0000 (13:49 +0100)]
gallium: remove noise opcodes

Provide a dummy implementation in the GL state tracker (move 0.5 to
the destination regs).

At some point, a motivated person could add a better
implementation of noise.  Currently not even the nvidia
binary drivers do anything more than this.  In any case, the
place to do this is in the GL state tracker, not the poor
driver.

15 years agoprogs/demos: add fps to multiarb
Keith Whitwell [Sat, 26 Sep 2009 07:39:57 +0000 (08:39 +0100)]
progs/demos: add fps to multiarb

15 years agor300g: last changes's typo, miss a include file
Cooper Yuan [Fri, 23 Oct 2009 08:40:31 +0000 (16:40 +0800)]
r300g: last changes's typo, miss a include file

15 years agor300g: add flush_frontbuffer function to display video surface
Cooper Yuan [Fri, 23 Oct 2009 06:46:29 +0000 (14:46 +0800)]
r300g: add flush_frontbuffer function to display video surface

15 years agog3dvl: pass display and screen to g3dvl when creating video private context
Cooper Yuan [Fri, 23 Oct 2009 06:44:27 +0000 (14:44 +0800)]
g3dvl: pass display and screen to g3dvl when creating video private context

15 years agor600: remove remains of old tnl pipeline
Alex Deucher [Fri, 23 Oct 2009 05:00:23 +0000 (01:00 -0400)]
r600: remove remains of old tnl pipeline

15 years agor600: fix render size prediction
Alex Deucher [Fri, 23 Oct 2009 04:40:41 +0000 (00:40 -0400)]
r600: fix render size prediction

15 years agor600: remove old tnl pipeline
Alex Deucher [Thu, 22 Oct 2009 21:41:31 +0000 (17:41 -0400)]
r600: remove old tnl pipeline

15 years agor600: clean up context creation
Alex Deucher [Thu, 22 Oct 2009 21:18:01 +0000 (17:18 -0400)]
r600: clean up context creation

Make it more consistent with other radeon drivers.

15 years agoRevert "Store clipping distance for user clip planes as part of vertex processing"
Ian Romanick [Fri, 23 Oct 2009 02:21:21 +0000 (19:21 -0700)]
Revert "Store clipping distance for user clip planes as part of vertex processing"

This reverts commit f058b25881e08c9d89a33345e5c84e1357396932.

This change is completely wrong in so many ways.  When clip distances
are generated as part of vertex processing, they must be interpolated
to perform clipping.  Geometric clipping goes right out the window.

15 years agoMerge branch 'mesa_7_6_branch'
Brian Paul [Fri, 23 Oct 2009 00:38:19 +0000 (18:38 -0600)]
Merge branch 'mesa_7_6_branch'

15 years agodocs: document 'useprog' debug option
Brian Paul [Thu, 22 Oct 2009 15:38:39 +0000 (09:38 -0600)]
docs: document 'useprog' debug option

15 years agomesa: fix up vbo comments
Brian Paul [Thu, 22 Oct 2009 15:37:56 +0000 (09:37 -0600)]
mesa: fix up vbo comments

15 years agomesa: added _mesa_dump_texture()
Brian Paul [Thu, 22 Oct 2009 15:37:22 +0000 (09:37 -0600)]
mesa: added _mesa_dump_texture()

15 years agointel: flush old context before binding new context
Brian Paul [Fri, 23 Oct 2009 00:32:48 +0000 (18:32 -0600)]
intel: flush old context before binding new context

Per the GLX spec, when changing rendering contexts, the old context
should first be flushed.

15 years agoglx: don't destroy context immediately if it's currently bound
Brian Paul [Fri, 23 Oct 2009 00:19:01 +0000 (18:19 -0600)]
glx: don't destroy context immediately if it's currently bound

According to the GLXDestroyContext() man page, the context should not
immediately be destroyed if it's bound to some thread.  Wait until it's
unbound to really delete it.  The code for doing the later part is
already present in MakeContextCurrent() so no change was needed there.

15 years agomesa: code refactoring- new _mesa_finish(), _mesa_flush()
Brian Paul [Fri, 23 Oct 2009 00:16:10 +0000 (18:16 -0600)]
mesa: code refactoring- new _mesa_finish(), _mesa_flush()

15 years agost/xorg: fix the makefile when used with new xextproto
Zack Rusin [Thu, 22 Oct 2009 23:31:44 +0000 (19:31 -0400)]
st/xorg: fix the makefile when used with new xextproto

15 years agoprogs/xdemos: fix command line flag typo
Brian Paul [Thu, 22 Oct 2009 23:11:59 +0000 (17:11 -0600)]
progs/xdemos: fix command line flag typo

15 years agoi965: fix hacked Fallback usage in brw_prepare_vertices()
Brian Paul [Thu, 22 Oct 2009 22:45:50 +0000 (16:45 -0600)]
i965: fix hacked Fallback usage in brw_prepare_vertices()

Setting intel->Fallback = 1 clobbered any fallback state that was already
set.  Not sure where this hack originated (the git history is a little
convoluted).  Define and use a new BRW_FALLBACK_DRAW bit instead.  This
shouldn't break anything and could potentially fix some bugs (but no
specific ones are known).

15 years agointel: define INTEL_FALLBACK_DRIVER for drivers
Brian Paul [Thu, 22 Oct 2009 22:45:03 +0000 (16:45 -0600)]
intel: define INTEL_FALLBACK_DRIVER for drivers

15 years agointel: Fallback field is a bitmask, use GLbitfield
Brian Paul [Thu, 22 Oct 2009 22:33:36 +0000 (16:33 -0600)]
intel: Fallback field is a bitmask, use GLbitfield

15 years agoi965: remove unused brw_context::tmp_fallback field
Brian Paul [Thu, 22 Oct 2009 22:32:08 +0000 (16:32 -0600)]
i965: remove unused brw_context::tmp_fallback field

15 years agoi965: remove unused BRW_FALLBACK_TEXTURE bit
Brian Paul [Thu, 22 Oct 2009 22:26:54 +0000 (16:26 -0600)]
i965: remove unused BRW_FALLBACK_TEXTURE bit

The value was probably wrong too.
It was the same as INTEL_FALLBACK_DRAW_BUFFER.

15 years agor300g: Enable more stuff in r300_screen, cleanup comments.
Corbin Simpson [Thu, 22 Oct 2009 21:28:47 +0000 (14:28 -0700)]
r300g: Enable more stuff in r300_screen, cleanup comments.

Also enable 24-bit depth buffers without stencil.

15 years agor300g: Cleanup PSC setup math a bit and stop using Draw formats.
Corbin Simpson [Thu, 22 Oct 2009 20:42:03 +0000 (13:42 -0700)]
r300g: Cleanup PSC setup math a bit and stop using Draw formats.

15 years agonv50: handle PIPE_TEX_FILTER_ANISO case
Christoph Bumiller [Thu, 22 Oct 2009 20:57:30 +0000 (22:57 +0200)]
nv50: handle PIPE_TEX_FILTER_ANISO case

Set the same bits as for linear filtering (in addition
to max anisotropy), and 2 unknown bits I've seen set.

15 years agonouveau: nv30: rewrite so we can render only in depth buffer
Patrice Mandin [Thu, 22 Oct 2009 20:01:53 +0000 (22:01 +0200)]
nouveau: nv30: rewrite so we can render only in depth buffer

15 years agonouveau: nv30: use a8r8g8b8 as depth texture format for z24s8
Patrice Mandin [Thu, 22 Oct 2009 19:55:09 +0000 (21:55 +0200)]
nouveau: nv30: use a8r8g8b8 as depth texture format for z24s8

15 years agoKill off trident.
Corbin Simpson [Thu, 22 Oct 2009 19:57:13 +0000 (12:57 -0700)]
Kill off trident.

Hm. I could have said "chew trident and spit it out," or perhaps
"spear trident," instead. Dohoho.

15 years agoNuke s3v.
Corbin Simpson [Thu, 22 Oct 2009 19:29:30 +0000 (12:29 -0700)]
Nuke s3v.

As per FDO #17889.

15 years agor300g: Clean up duplicate code in r300_render.
Corbin Simpson [Thu, 22 Oct 2009 18:45:36 +0000 (11:45 -0700)]
r300g: Clean up duplicate code in r300_render.

15 years agor300g: Move render functions to r300_render.
Corbin Simpson [Thu, 22 Oct 2009 18:39:59 +0000 (11:39 -0700)]
r300g: Move render functions to r300_render.

Part of the fastpath cleanup.

15 years agoscons: Hack LLVM support on Windows.
José Fonseca [Thu, 22 Oct 2009 18:11:48 +0000 (19:11 +0100)]
scons: Hack LLVM support on Windows.

Doesn't quite work yet though, as small differences in the compilation flags
used when building LLVM and Mesa cause link failures for STL symbols.

15 years agollvmpipe: Avoid yet another variable size array.
José Fonseca [Thu, 22 Oct 2009 18:03:04 +0000 (19:03 +0100)]
llvmpipe: Avoid yet another variable size array.

15 years agollvmpipe: Define rdtsc for MSVC.
José Fonseca [Thu, 22 Oct 2009 18:02:42 +0000 (19:02 +0100)]
llvmpipe: Define rdtsc for MSVC.

15 years agollvmpipe: Avoid variable size arrays.
José Fonseca [Thu, 22 Oct 2009 18:02:04 +0000 (19:02 +0100)]
llvmpipe: Avoid variable size arrays.

Not really variable size, but MSVC still doesn't like them.

15 years agollvmpipe: Use the pack/unpack functions for 8bit unsigned norm multiplication.
José Fonseca [Thu, 22 Oct 2009 17:28:57 +0000 (18:28 +0100)]
llvmpipe: Use the pack/unpack functions for 8bit unsigned norm multiplication.

15 years agollvmpipe: Utility function to double the bit width of a type.
José Fonseca [Thu, 22 Oct 2009 17:28:37 +0000 (18:28 +0100)]
llvmpipe: Utility function to double the bit width of a type.

15 years agollvmpipe: Factor vector packing/unpacking to a separate source file.
José Fonseca [Thu, 22 Oct 2009 17:28:17 +0000 (18:28 +0100)]
llvmpipe: Factor vector packing/unpacking to a separate source file.

These functions will be needed to implement many of the 8bit operations,
and they are quite complex on its own.

15 years agollvmpipe: Call util_cpu_detect() from the unit tests.
José Fonseca [Thu, 22 Oct 2009 17:10:19 +0000 (18:10 +0100)]
llvmpipe: Call util_cpu_detect() from the unit tests.

15 years agoutil: Set cpu endianness too.
José Fonseca [Thu, 22 Oct 2009 17:09:37 +0000 (18:09 +0100)]
util: Set cpu endianness too.

15 years agoscons: Disable more MSVC pedantic security warnings.
José Fonseca [Wed, 21 Oct 2009 16:03:52 +0000 (17:03 +0100)]
scons: Disable more MSVC pedantic security warnings.

15 years agoMerge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
Alex Deucher [Thu, 22 Oct 2009 16:29:36 +0000 (12:29 -0400)]
Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa

15 years agost/xorg: cleanup the checks for whether the op is accelerated
Zack Rusin [Thu, 22 Oct 2009 16:13:02 +0000 (12:13 -0400)]
st/xorg: cleanup the checks for whether the op is accelerated

15 years agoMerge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
Alex Deucher [Thu, 22 Oct 2009 16:02:31 +0000 (12:02 -0400)]
Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa

15 years agost/xorg: lots of render fixes
Zack Rusin [Thu, 22 Oct 2009 15:49:19 +0000 (11:49 -0400)]
st/xorg: lots of render fixes

fixes all the blend modes, fixes flushing/finishing semantics, adds
acceleration for the component alpha modes that we can support, fixes
src in mask shader and general cleanups

15 years agoprogs/egl: Add support for pixmap and pbuffer surface to xeglgears.
Chia-I Wu [Sun, 18 Oct 2009 05:15:30 +0000 (13:15 +0800)]
progs/egl: Add support for pixmap and pbuffer surface to xeglgears.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl_glx: Add support for eglWaitClient and eglWaitNative.
Chia-I Wu [Fri, 2 Oct 2009 02:38:14 +0000 (10:38 +0800)]
egl_glx: Add support for eglWaitClient and eglWaitNative.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl_glx: Clean up eglGetProcAddress.
Chia-I Wu [Thu, 1 Oct 2009 10:23:58 +0000 (18:23 +0800)]
egl_glx: Clean up eglGetProcAddress.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl_glx: Clean up context functions.
Chia-I Wu [Thu, 1 Oct 2009 10:23:41 +0000 (18:23 +0800)]
egl_glx: Clean up context functions.

This lifts the requirement that a context must be direct.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl_glx: Clean up surface functions.
Chia-I Wu [Thu, 1 Oct 2009 10:22:33 +0000 (18:22 +0800)]
egl_glx: Clean up surface functions.

Separete Drawable and GLXDrawable.  Add support for pbuffer and pixmap
surfaces on GLX <= 1.3.  Remove surface binding code that will never
work.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl_glx: Clean up the initialization code.
Chia-I Wu [Thu, 1 Oct 2009 10:16:10 +0000 (18:16 +0800)]
egl_glx: Clean up the initialization code.

Proper detection of GLX extensions.  Convert fbconfigs or visuals in a
more unified way and validate the resulting configs.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl: Correct conversion of native visual type.
Chia-I Wu [Fri, 16 Oct 2009 04:18:25 +0000 (12:18 +0800)]
egl: Correct conversion of native visual type.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agonv50: support 3D class 0x8597, remove redundant unknown chipset detection
Ben Skeggs [Thu, 22 Oct 2009 11:55:22 +0000 (21:55 +1000)]
nv50: support 3D class 0x8597, remove redundant unknown chipset detection

15 years agor300g: Check for NULL Draw during flush.
Corbin Simpson [Thu, 22 Oct 2009 07:21:08 +0000 (00:21 -0700)]
r300g: Check for NULL Draw during flush.

Split from the fastpath WIP.

15 years agor600: set barrier for tex inst if dst is used earlier, might overwrite it otherwise
Andre Maasikas [Wed, 21 Oct 2009 16:04:21 +0000 (19:04 +0300)]
r600: set barrier for tex inst if dst is used earlier, might overwrite it otherwise

15 years agor600: need to export something from PS
Andre Maasikas [Wed, 21 Oct 2009 09:23:27 +0000 (12:23 +0300)]
r600: need to export something from PS

 Also avoids empty shader for "END" - seems to be somewhat valid fp
 Maybe this can be done differently in the future (fake FRAG_RESULT_COLOR
 already in Map_Fragment_Program() or is there a way to program the chip
 to not hang in case of no exports.

15 years agor600: add beginnings of ARL instruction
Andre Maasikas [Tue, 20 Oct 2009 08:45:39 +0000 (11:45 +0300)]
r600: add beginnings of ARL instruction

15 years agor300g: Update comments, function names in r300_state_inlines.
Corbin Simpson [Thu, 22 Oct 2009 06:26:02 +0000 (23:26 -0700)]
r300g: Update comments, function names in r300_state_inlines.

15 years agor300g: Update comments, asserts, indents in r300_texture.
Corbin Simpson [Thu, 22 Oct 2009 06:23:37 +0000 (23:23 -0700)]
r300g: Update comments, asserts, indents in r300_texture.

I wish I knew enough about textures to really really REALLY fix that file.

15 years agor300g: Remove unused debug flag.
Corbin Simpson [Thu, 22 Oct 2009 05:54:52 +0000 (22:54 -0700)]
r300g: Remove unused debug flag.

15 years agor300g: Cleanup old static shader state.
Corbin Simpson [Thu, 22 Oct 2009 05:53:37 +0000 (22:53 -0700)]
r300g: Cleanup old static shader state.

15 years agogallium/util: fix cpu detection on ppc
Marc Dietrich [Sun, 18 Oct 2009 15:28:33 +0000 (08:28 -0700)]
gallium/util: fix cpu detection on ppc

As we are compiling with -D_BSD_SOURCE, sigjmp_buf and siglongjmp
should be replaced by the non-sig functions (see man 3 setjmp).
Tested on linux/cell.

15 years agomesa: added _mesa_dump_renderbuffers() debug code
Brian Paul [Tue, 20 Oct 2009 22:13:08 +0000 (16:13 -0600)]
mesa: added _mesa_dump_renderbuffers() debug code

15 years agonouveau: nv30: Do not use assert to return NULL
Patrice Mandin [Wed, 21 Oct 2009 20:01:03 +0000 (22:01 +0200)]
nouveau: nv30: Do not use assert to return NULL

15 years agonouveau: nv30: check number of colour buffers to bind
Patrice Mandin [Wed, 21 Oct 2009 19:56:09 +0000 (21:56 +0200)]
nouveau: nv30: check number of colour buffers to bind

15 years agollvmpipe: Remove extraneous name in lp_type pre-declaration.
José Fonseca [Tue, 20 Oct 2009 09:54:21 +0000 (10:54 +0100)]
llvmpipe: Remove extraneous name in lp_type pre-declaration.

15 years agor300g: No debug in r300_state.
Corbin Simpson [Wed, 21 Oct 2009 13:49:16 +0000 (06:49 -0700)]
r300g: No debug in r300_state.

15 years agor300g: Cleanup header includes.
Corbin Simpson [Wed, 21 Oct 2009 13:31:36 +0000 (06:31 -0700)]
r300g: Cleanup header includes.

15 years agor300g: Don't use getenv; use debug_get_*_option instead.
Corbin Simpson [Wed, 21 Oct 2009 12:54:49 +0000 (05:54 -0700)]
r300g: Don't use getenv; use debug_get_*_option instead.

15 years agor300g: Don't use the hashtable internally.
Corbin Simpson [Wed, 21 Oct 2009 12:48:45 +0000 (05:48 -0700)]
r300g: Don't use the hashtable internally.

As osiris pointed out, glxgears slowly gets slower for some reason
when it's enabled, and it's not helping at the moment, so just turn
it off.

15 years agor300g: Examine vertex attribute type on HW TCL too.
Corbin Simpson [Wed, 21 Oct 2009 12:45:05 +0000 (05:45 -0700)]
r300g: Examine vertex attribute type on HW TCL too.

15 years agor300g: Also kill r300_shader_inlines with fire.
Corbin Simpson [Wed, 21 Oct 2009 13:47:05 +0000 (06:47 -0700)]
r300g: Also kill r300_shader_inlines with fire.

15 years agor300g: Kill r300_surface with fire.
Corbin Simpson [Wed, 21 Oct 2009 13:44:16 +0000 (06:44 -0700)]
r300g: Kill r300_surface with fire.

If you really want to see it again, check the history.

15 years agoprogs/trivial: check if GL_ARB_occlusion_query is supported
Brian Paul [Tue, 20 Oct 2009 22:22:03 +0000 (16:22 -0600)]
progs/trivial: check if GL_ARB_occlusion_query is supported

15 years agointel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).
Eric Anholt [Tue, 20 Oct 2009 21:51:53 +0000 (14:51 -0700)]
intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).

Bug #24435

15 years agometa: Fix the BufferSubData in meta clear to be BufferData.
Eric Anholt [Tue, 20 Oct 2009 00:54:42 +0000 (17:54 -0700)]
meta: Fix the BufferSubData in meta clear to be BufferData.

Fixes a 3.4% +/- 1.3% performance regression in my GL demo (n=3).  The
other meta code could probably also use the same treatment.

15 years agocell: fix compilation on cell
Marc Dietrich [Sun, 18 Oct 2009 15:28:34 +0000 (08:28 -0700)]
cell: fix compilation on cell

s/LERP/LRP/

15 years agomesa: Fix Mac OS build.
Vinson Lee [Tue, 20 Oct 2009 16:43:46 +0000 (10:43 -0600)]
mesa: Fix Mac OS build.

strtod_l needs the xlocale.h header on Mac OS. It's possible other
non-Linux OSes would need this header too.

15 years agost/xorg: Move drm init to own function
Jakob Bornecrantz [Tue, 20 Oct 2009 15:52:33 +0000 (17:52 +0200)]
st/xorg: Move drm init to own function

15 years agotrace: Check for destroy before calling it
Jakob Bornecrantz [Tue, 20 Oct 2009 15:17:41 +0000 (17:17 +0200)]
trace: Check for destroy before calling it

15 years agost/xorg: Cleanly shutdown
Jakob Bornecrantz [Tue, 20 Oct 2009 15:18:25 +0000 (17:18 +0200)]
st/xorg: Cleanly shutdown

15 years agor300: fix texture size handling with size > 2048
Mathias Fröhlich [Mon, 19 Oct 2009 15:47:21 +0000 (11:47 -0400)]
r300: fix texture size handling with size > 2048

The in kernel texture check fails because of both
bit11 flags being set on 16x16 textures. It tuns out
that these bits are still set and not cleared in the
pp_txpitch field of the texture. The attached patch
at least helps for this case on my machine. It clears
the bit 11 from the pitch field if the texture is smaller
and masks out that hight bits on the conventional width
and height field.

Fixes bug 24584

15 years agor600: Fix size calculation for 24 bit depth
Robert Noland [Mon, 19 Oct 2009 14:47:39 +0000 (09:47 -0500)]
r600: Fix size calculation for 24 bit depth

size was being calculated based on 3 bytes per pixel with 24 bit depth
instead of 4 bytes.  This caused corruption in the bottom 25% of objects.
This finishes fixing the menu/text corruption in compiz/kde4.

Signed-off-by: Robert Noland <rnoland@2hip.net>
15 years agost/xorg: Remove output functions not used
Jakob Bornecrantz [Mon, 19 Oct 2009 05:49:40 +0000 (07:49 +0200)]
st/xorg: Remove output functions not used

15 years agost/xorg: makefile garbage
Zack Rusin [Tue, 20 Oct 2009 03:48:38 +0000 (23:48 -0400)]
st/xorg: makefile garbage

15 years agost/xorg: implement basic src/mask transformations
Zack Rusin [Tue, 13 Oct 2009 17:06:39 +0000 (13:06 -0400)]
st/xorg: implement basic src/mask transformations

plus fix filters

15 years agor300g: Demonstratory kludge to unbreak glxgears.
Corbin Simpson [Mon, 19 Oct 2009 20:51:28 +0000 (13:51 -0700)]
r300g: Demonstratory kludge to unbreak glxgears.

We *must* recalculate something in vformat every rebind; let's see
if we can't narrow it down a bit.

15 years agodri-st: Add EXT_provoking_vertex.
Corbin Simpson [Mon, 19 Oct 2009 20:06:45 +0000 (13:06 -0700)]
dri-st: Add EXT_provoking_vertex.

Hm, I could have sworn I did this before?

15 years agost/xorg: Switch to set_mode_major
Jakob Bornecrantz [Sun, 18 Oct 2009 09:49:44 +0000 (11:49 +0200)]
st/xorg: Switch to set_mode_major