mesa.git
15 years agoegl: Correct the default values of surface attributes.
Chia-I Wu [Mon, 3 Aug 2009 17:35:44 +0000 (11:35 -0600)]
egl: Correct the default values of surface attributes.

EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET should default to
EGL_NO_TEXTURE.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl: Make eglMakeCurrent more robust.
Chia-I Wu [Mon, 3 Aug 2009 17:35:14 +0000 (11:35 -0600)]
egl: Make eglMakeCurrent more robust.

Now that a current surface points back to its binding context, and a
current context points back to its binding thread, make sure there is no
dangling pointers.  This commit reworks eglMakeCurrent, adds more checks
to avoid stealing context or surfaces from another thread, and correctly
destroys unlinked context and surfaces.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl: Replace IsBound by a pointer to the binding.
Chia-I Wu [Mon, 3 Aug 2009 17:34:37 +0000 (11:34 -0600)]
egl: Replace IsBound by a pointer to the binding.

IsBound tells if a context or surface is current.  What it does not tell
is, to which thread a context is current, or to which context a surface
is current.  This commit replaces IsBound by a pointer to the binding
thread or context.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agogl: upgrade wglext.h to version 15
Brian Paul [Mon, 3 Aug 2009 17:22:39 +0000 (11:22 -0600)]
gl: upgrade wglext.h to version 15

15 years agogl: upgrade glxext.h to version 23
Brian Paul [Mon, 3 Aug 2009 17:21:57 +0000 (11:21 -0600)]
gl: upgrade glxext.h to version 23

15 years agogl: upgrade glext.h to version 54
Brian Paul [Mon, 3 Aug 2009 17:20:40 +0000 (11:20 -0600)]
gl: upgrade glext.h to version 54

15 years agotgsi: report opcode name in addition to the number when translation fails
Brian Paul [Fri, 31 Jul 2009 16:23:52 +0000 (10:23 -0600)]
tgsi: report opcode name in addition to the number when translation fails

15 years agotgsi: added tgsi_get_opcode_name()
Brian Paul [Fri, 31 Jul 2009 16:23:09 +0000 (10:23 -0600)]
tgsi: added tgsi_get_opcode_name()

15 years agogallium: comments, reformatting
Brian Paul [Fri, 31 Jul 2009 15:30:56 +0000 (09:30 -0600)]
gallium: comments, reformatting

15 years agor600: add some missing pci ids
Alex Deucher [Mon, 3 Aug 2009 15:21:10 +0000 (11:21 -0400)]
r600: add some missing pci ids

15 years agor600: fix the build when RADEON_DEBUG_BO is set
Alex Deucher [Mon, 3 Aug 2009 07:12:56 +0000 (03:12 -0400)]
r600: fix the build when RADEON_DEBUG_BO is set

15 years agor600: fix r600SetTexOffset
Alex Deucher [Mon, 3 Aug 2009 06:28:22 +0000 (02:28 -0400)]
r600: fix r600SetTexOffset

We need to properly set up a fake bo for the texture override,
so add a new function to radeon_bo_legacy.c.  This could probably
be used on radeon/r200/r300 to unify the bo handling for
texture override.

compiz now works :)

15 years agoMerge commit 'nha/r300-compiler-gallium'
Corbin Simpson [Sun, 2 Aug 2009 23:56:52 +0000 (16:56 -0700)]
Merge commit 'nha/r300-compiler-gallium'

15 years agor600: handle state emit better
Alex Deucher [Sun, 2 Aug 2009 22:26:12 +0000 (18:26 -0400)]
r600: handle state emit better

- move shader-related state with the rest of the shader setup/emit
- start to track dirty state better

15 years agor600: Logic Operations Fix
vehemens [Sun, 2 Aug 2009 22:03:58 +0000 (18:03 -0400)]
r600: Logic Operations Fix

fixes bug 23087

15 years agor600: fix regression in texenv
Alex Deucher [Sun, 2 Aug 2009 17:28:18 +0000 (13:28 -0400)]
r600: fix regression in texenv

Emit shader consts with the shader program itself

15 years agor300: Fix a regression on non-KMS
Nicolai Hähnle [Sun, 2 Aug 2009 12:38:44 +0000 (14:38 +0200)]
r300: Fix a regression on non-KMS

The regression was introduced by 9a1c336253579d8b58b31910325227b22b4af395

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor600: fix rectangle textures
Alex Deucher [Sun, 2 Aug 2009 00:55:43 +0000 (20:55 -0400)]
r600: fix rectangle textures

It might be better to add an instruction to normalize the
coordinates for rectanglular textures as there are some limitations
to wrap modes on unnormalized tex coords.

fixes texrect

15 years agor300: Fix corner-case of KIL on R300
Nicolai Hähnle [Sat, 1 Aug 2009 16:58:47 +0000 (18:58 +0200)]
r300: Fix corner-case of KIL on R300

R300 hardware (but _not_ R500) hardware requires an enabled texture unit
if KIL is used in fragment programs. We now work around the CS checker
correctly when enabling such a fake texture unit.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor300: Fix Z buffer re-emit after window resize
Nicolai Hähnle [Sat, 1 Aug 2009 14:50:21 +0000 (16:50 +0200)]
r300: Fix Z buffer re-emit after window resize

We used to not always correctly re-emit the Z buffer size in all cases,
in particular the clear path, and invalidated state was not always picked
up correctly.

This fixes a bug where the kernel CS checker correctly complains about
a Z buffer that is too small.

Note that this bug was probably only visible with ridiculously high
framerates, i.e. glxgears.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agomesa st: Use POT texture for draw pixels operations if NPOT texture is not supported
Patrice Mandin [Sat, 1 Aug 2009 09:15:18 +0000 (11:15 +0200)]
mesa st: Use POT texture for draw pixels operations if NPOT texture is not supported

15 years agomesa st: Move logbase2 function to util/u_math.h
Patrice Mandin [Sat, 1 Aug 2009 09:03:30 +0000 (11:03 +0200)]
mesa st: Move logbase2 function to util/u_math.h

15 years agoradeon: fix r100/r200 compressed texture stride
Roland Scheidegger [Fri, 31 Jul 2009 21:24:44 +0000 (23:24 +0200)]
radeon: fix r100/r200 compressed texture stride

This almost fixes compressed mipmapped textures on r200, though some small
mip levels are still broken.
Leave r300 compressed texture stride as is though afaik it's different
to pre-radeon-rewrite too. Also do the fixup for rs600 uncompressed row stride
at same place.

15 years agoradeon: s/r300/radeon in shared code error message
Roland Scheidegger [Fri, 31 Jul 2009 21:20:22 +0000 (23:20 +0200)]
radeon: s/r300/radeon in shared code error message

15 years agoradeon: Cliprects has to be updated before doing anything with clip rectangles
Pauli Nieminen [Tue, 28 Jul 2009 22:28:33 +0000 (01:28 +0300)]
radeon: Cliprects has to be updated before doing anything with clip rectangles

Reported to fix corruption while dragging an active window by John Bridgman.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agoradeon: Remove unused variable from context.
Pauli Nieminen [Fri, 31 Jul 2009 11:03:36 +0000 (14:03 +0300)]
radeon: Remove unused variable from context.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor600: make sure bos are valid before usign that
Alex Deucher [Fri, 31 Jul 2009 19:11:41 +0000 (15:11 -0400)]
r600: make sure bos are valid before usign that

15 years agor600: fix reloc setup
Alex Deucher [Fri, 31 Jul 2009 18:48:46 +0000 (14:48 -0400)]
r600: fix reloc setup

re-use the same reloc index for bos that are referenced
multiple times.

Fixes rain demo.

15 years agor600: remove unused offset_mod stuff
Alex Deucher [Fri, 31 Jul 2009 16:06:26 +0000 (12:06 -0400)]
r600: remove unused offset_mod stuff

this is a step in migrating to the common cs code

15 years agor600: ensure we have enough room for full state emit
Alex Deucher [Fri, 31 Jul 2009 15:33:16 +0000 (11:33 -0400)]
r600: ensure we have enough room for full state emit

full state is roughly 4000 dwords, but will vary depending
on the rendering.
Also fix some warnings.

15 years agor600: unify state emit into one function
Alex Deucher [Fri, 31 Jul 2009 15:12:10 +0000 (11:12 -0400)]
r600: unify state emit into one function

15 years agor600: re-arrange state setup and emit so they are not mixed
Alex Deucher [Fri, 31 Jul 2009 14:53:06 +0000 (10:53 -0400)]
r600: re-arrange state setup and emit so they are not mixed

15 years agoRename TGSI LOOP instruction to better match theri usage.
Michal Krol [Fri, 31 Jul 2009 16:12:53 +0000 (18:12 +0200)]
Rename TGSI LOOP instruction to better match theri usage.

The LOOP/ENDLOOP pair is renamed to BGNFOR/ENDFOR as its behaviour
is similar to a C language for-loop.

The BGNLOOP2/ENDLOOP2 pair is renamed to BGNLOOP/ENDLOOP as now
there is no name collision.

15 years agoegl: Silence warnings on x86-64.
Chia-Wu [Fri, 31 Jul 2009 13:28:56 +0000 (07:28 -0600)]
egl: Silence warnings on x86-64.

Casting an unsigned int to or from a pointer directly gives warnings on
x86-64.  Add wrappers to silence the warnings.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agor600: get updated pending age from cs ioctl
Alex Deucher [Fri, 31 Jul 2009 06:13:43 +0000 (02:13 -0400)]
r600: get updated pending age from cs ioctl

REQUIRES AN UPDATED DRM

15 years agor600: warning fixes
Alex Deucher [Fri, 31 Jul 2009 01:27:05 +0000 (21:27 -0400)]
r600: warning fixes

15 years agor600: split primitive draw into a separate function
Alex Deucher [Thu, 30 Jul 2009 18:59:48 +0000 (14:59 -0400)]
r600: split primitive draw into a separate function

15 years agor300g: Use radeon compiler for fragment programs
Nicolai Hähnle [Thu, 30 Jul 2009 21:45:34 +0000 (23:45 +0200)]
r300g: Use radeon compiler for fragment programs

This is entirely untested on R500, and needs more testing on R300.

15 years agor300g: Remove extraneous printf
Nicolai Hähnle [Wed, 29 Jul 2009 17:22:56 +0000 (19:22 +0200)]
r300g: Remove extraneous printf

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor300g: Use r300compiler for vertex shaders
Nicolai Hähnle [Mon, 27 Jul 2009 18:23:49 +0000 (20:23 +0200)]
r300g: Use r300compiler for vertex shaders

15 years agor300/compiler: Remove inst_offset from r500_fragment_program_code
Nicolai Hähnle [Thu, 30 Jul 2009 20:26:02 +0000 (22:26 +0200)]
r300/compiler: Remove inst_offset from r500_fragment_program_code

The field is not used, and in any case it would be more interesting to
manipulate from *outside* the compiler if we ever wanted to load several
fragment programs at the same time or something.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agoprogs/vp: Correct the PARAM array sizes in arl-*.txt
Ian Romanick [Thu, 30 Jul 2009 21:08:53 +0000 (14:08 -0700)]
progs/vp: Correct the PARAM array sizes in arl-*.txt

15 years agosoftpipe: Mark texture dirty when unmapped.
Chia-I Wu [Thu, 30 Jul 2009 16:42:41 +0000 (10:42 -0600)]
softpipe: Mark texture dirty when unmapped.

When a texutre transfer is mapped for writing, mark the texture dirty
when unmapped.  This was done in surface creation, and this commit moves
it to happen in texture unmapping.

This fixes subtex test in progs/tests/.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agomesa: re-enable _mesa_source_buffer_exists() call
Brian Paul [Thu, 30 Jul 2009 16:04:38 +0000 (10:04 -0600)]
mesa: re-enable _mesa_source_buffer_exists() call

Somehow this code wound up inside a comment a while back.

15 years agomesa: get_current_tex_unit() helper function
Brian Paul [Thu, 30 Jul 2009 15:59:52 +0000 (09:59 -0600)]
mesa: get_current_tex_unit() helper function

15 years agomesa: refactor glGetTexImage error checking code
Brian Paul [Thu, 30 Jul 2009 15:50:36 +0000 (09:50 -0600)]
mesa: refactor glGetTexImage error checking code

15 years agotests: glGetTexImage() test
Brian Paul [Thu, 30 Jul 2009 15:46:57 +0000 (09:46 -0600)]
tests: glGetTexImage() test

15 years agomesa: simplify _mesa_select_tex_image()
Brian Paul [Thu, 30 Jul 2009 15:24:01 +0000 (09:24 -0600)]
mesa: simplify _mesa_select_tex_image()

15 years agomesa: simplify _mesa_set_tex_image()
Brian Paul [Thu, 30 Jul 2009 15:10:26 +0000 (09:10 -0600)]
mesa: simplify _mesa_set_tex_image()

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Thu, 30 Jul 2009 15:03:43 +0000 (09:03 -0600)]
Merge branch 'mesa_7_5_branch'

15 years agomesa: move misplaced return statement
Brian Paul [Thu, 30 Jul 2009 15:02:27 +0000 (09:02 -0600)]
mesa: move misplaced return statement

Fixes regression from commit 7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Thu, 30 Jul 2009 14:24:10 +0000 (08:24 -0600)]
Merge branch 'mesa_7_5_branch'

15 years agomesa: add missing return after catching program error
Brian Paul [Thu, 30 Jul 2009 14:20:01 +0000 (08:20 -0600)]
mesa: add missing return after catching program error

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Thu, 30 Jul 2009 14:22:57 +0000 (08:22 -0600)]
Merge branch 'mesa_7_5_branch'

15 years agodocs: document new i915/945 extensions
Brian Paul [Thu, 30 Jul 2009 14:22:26 +0000 (08:22 -0600)]
docs: document new i915/945 extensions

15 years agomesa st: Change the preferred internal format for some RGB formats.
Thomas Hellstrom [Thu, 30 Jul 2009 10:39:26 +0000 (12:39 +0200)]
mesa st: Change the preferred internal format for some RGB formats.

For GL_RGB5, GL_RGB4 and GL_R3_G3_B2, prefer
PIPE_FORMAT_R5G6B5_UNORM over PIPE_FORMAT_A1R5G5B5_UNORM, since hardware
is more likely to support the previous format for rendering.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
15 years agomesa st: Report unsupported render-to-texture formats.
Thomas Hellstrom [Thu, 30 Jul 2009 10:34:02 +0000 (12:34 +0200)]
mesa st: Report unsupported render-to-texture formats.

If a texture image is bound to a framebuffer for render-to-texture, but
the hardware doesn't support rendering to its internal format,
report the framebuffer as incomplete with FRAMEBUFFER_UNSUPPORTED.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
15 years agotgsi: Add proper constraints to sanity.
Michal Krol [Thu, 30 Jul 2009 09:39:06 +0000 (11:39 +0200)]
tgsi: Add proper constraints to sanity.

15 years agotgsi: Declare a LOOP register.
Michal Krol [Thu, 30 Jul 2009 08:34:06 +0000 (10:34 +0200)]
tgsi: Declare a LOOP register.

The only valid usage for LOOP/ENDLOOP instructions
is LOOP[0] as a destination register.
The only valid usage for the remaining instructions
is LOOP[0].x as an indirect register.

15 years agotgsi: Fix number operands for LOOP/ENDLOOP.
Michal Krol [Thu, 30 Jul 2009 08:33:18 +0000 (10:33 +0200)]
tgsi: Fix number operands for LOOP/ENDLOOP.

15 years agovbo: Fix build on windows.
Michal Krol [Thu, 30 Jul 2009 08:31:57 +0000 (10:31 +0200)]
vbo: Fix build on windows.

15 years agotgsi: Document LOOP/ENDLOOP instruction operation.
Michal Krol [Thu, 30 Jul 2009 08:12:09 +0000 (10:12 +0200)]
tgsi: Document LOOP/ENDLOOP instruction operation.

15 years agoi965: Postpone ff_sync message in CLIP kernel on IGDNG
Xiang, Haihao [Thu, 30 Jul 2009 06:45:11 +0000 (14:45 +0800)]
i965: Postpone ff_sync message in CLIP kernel on IGDNG

In addition, it guarantees ff_sync message is issued

15 years agor600: fix mipmaps
Alex Deucher [Thu, 30 Jul 2009 07:30:46 +0000 (03:30 -0400)]
r600: fix mipmaps

redbook mipmap works

15 years agoi915: Add support for EXT_stencil_two_side and ATI_separate_stencil.
Eric Anholt [Wed, 29 Jul 2009 21:06:05 +0000 (14:06 -0700)]
i915: Add support for EXT_stencil_two_side and ATI_separate_stencil.

Passes tests/stencil_twoside and glean/stencil2.

15 years agoi915: Add ARB_point_sprite since we already expose NV_point_sprite.
Eric Anholt [Wed, 29 Jul 2009 20:37:41 +0000 (13:37 -0700)]
i915: Add ARB_point_sprite since we already expose NV_point_sprite.

It's all fallbacks anyway due to the DD_POINT_ATTEN fallback.

15 years agogallium: fix SSE shadow texture instructions
Brian Paul [Wed, 29 Jul 2009 22:27:03 +0000 (16:27 -0600)]
gallium: fix SSE shadow texture instructions

When sampling a 2D shadow map we need 3 texcoord components, not 2.
The third component (distance from light source) is compared against
the texture sample to return the result (visible vs. occluded).

Also, enable proper handling of TGSI_TEXTURE_SHADOW targets in Mesa->TGSI
translation.  There's a possibility for breakage in gallium drivers if
they fail to handle the TGSI_TEXTURE_SHADOW1D / TGSI_TEXTURE_SHADOW2D /
TGSI_TEXTURE_SHADOWRECT texture targets for TGSI_OPCODE_TEX/TXP instructions,
but that should be easy to fix.

With these changes, progs/demos/shadowtex.c renders properly again with
softpipe.

15 years agor600: remove extraneous semicolon
Alex Deucher [Wed, 29 Jul 2009 22:12:33 +0000 (18:12 -0400)]
r600: remove extraneous semicolon

15 years agor600: fix texture pitch alignment
Alex Deucher [Wed, 29 Jul 2009 22:06:20 +0000 (18:06 -0400)]
r600: fix texture pitch alignment

fixes texwrap

15 years agor600: minor fixes
Alex Deucher [Wed, 29 Jul 2009 19:15:36 +0000 (15:15 -0400)]
r600: minor fixes

- set MAX_LOD properly
- min texel pitch is 8 texels
- emit old command buffer when re-initing base state

15 years agor300: Cleanup r300_fragment_program_code
Nicolai Hähnle [Wed, 29 Jul 2009 18:59:56 +0000 (20:59 +0200)]
r300: Cleanup r300_fragment_program_code

Configuration register values are now stored directly in that structure.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agor300/compiler: Adapt AllocateHwInputs interface to common usage pattern
Nicolai Hähnle [Wed, 29 Jul 2009 17:41:07 +0000 (19:41 +0200)]
r300/compiler: Adapt AllocateHwInputs interface to common usage pattern

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agoswrast: enable ARB_vertex_array_object.
Eric Anholt [Tue, 28 Jul 2009 20:51:29 +0000 (13:51 -0700)]
swrast: enable ARB_vertex_array_object.

It was getting enabled anyway but without the entrypoints installed.  Whoops.

15 years agomesa/st: short-circuit glFinish calls on WIN32 only
Keith Whitwell [Wed, 29 Jul 2009 11:47:23 +0000 (12:47 +0100)]
mesa/st: short-circuit glFinish calls on WIN32 only

Windows opengl32.dll calls glFinish prior to every swapbuffers, which
makes it pretty hard to get decent performance...

Work around by mapping finish to flush on PIPE_OS_WINDOWS.  This is
conformant, though it might confuse poorly-written benchmarks which
attempt to measure a single event rather than figuring out the rate of
continuous processing.

15 years agomesa/st: recognize no-op scissor state when checking clear_with_quads
Keith Whitwell [Tue, 28 Jul 2009 17:45:22 +0000 (18:45 +0100)]
mesa/st: recognize no-op scissor state when checking clear_with_quads

Some apps enable scissor but set the rectangle to the dimensions of
the window.  Don't let this force us onto a slower clear path.

15 years agoutil: _debug_printf should print even when DEBUG is not defined
Keith Whitwell [Thu, 16 Jul 2009 16:51:02 +0000 (17:51 +0100)]
util: _debug_printf should print even when DEBUG is not defined

The leading underscore is meaningful...  This function is used by
_warning and _error functions as well as the more common
debug_printf().

debug_printf (without underscore) gets turned off when DEBUG is
disabled, but warning/error messages still use this function to get
their message out.
(cherry picked from commit 0ac879dca797360570543d5bd0fd64f8fb8e566e)

15 years agor600: emit fog color in PS input map, fix fog related applications
Cooper Yuan [Wed, 29 Jul 2009 07:31:41 +0000 (15:31 +0800)]
r600: emit fog color in PS input map, fix fog related applications

15 years agoR6xx/r7xx: VS export fog color as parameter
Cooper Yuan [Wed, 29 Jul 2009 07:23:56 +0000 (15:23 +0800)]
R6xx/r7xx: VS export fog color as parameter

15 years agonv50: support non-blocking query_result()
Ben Skeggs [Wed, 29 Jul 2009 01:19:52 +0000 (11:19 +1000)]
nv50: support non-blocking query_result()

15 years agonouveau: map_range returning -EBUSY isn't necessarily an error
Ben Skeggs [Wed, 29 Jul 2009 00:58:05 +0000 (10:58 +1000)]
nouveau: map_range returning -EBUSY isn't necessarily an error

15 years agonv50: correct zeta formats
Christoph Bumiller [Tue, 28 Jul 2009 23:07:52 +0000 (01:07 +0200)]
nv50: correct zeta formats

What was Z24S8 before is actually S8Z24, and what we had for Z16
is actually X8Z24. Now, we also have the REAL Z24S8 and I added
Z32_FLOAT as well; most of the formats need different tile_flags.

15 years agonv50: use new 2D surface format names
Christoph Bumiller [Tue, 28 Jul 2009 15:38:28 +0000 (17:38 +0200)]
nv50: use new 2D surface format names

15 years agonv50: support more vtxelt formats
Christoph Bumiller [Tue, 28 Jul 2009 15:34:07 +0000 (17:34 +0200)]
nv50: support more vtxelt formats

NOTE: we must not try to emit buffer relocations when
vtxbuf_nr is 0 but vtxelt_nr is not

15 years agonv50: should use uint32_t ptr in draw_elements_inline_u32
Christoph Bumiller [Tue, 28 Jul 2009 15:21:31 +0000 (17:21 +0200)]
nv50: should use uint32_t ptr in draw_elements_inline_u32

15 years agonv50: TIC/TSC fixes and additions
Christoph Bumiller [Tue, 28 Jul 2009 22:55:03 +0000 (00:55 +0200)]
nv50: TIC/TSC fixes and additions

Red and blue were interchanged in TIC.
Add border color and some formats.

15 years agonv50: fix sx/dx typo in transfer_rect_m2mf
Christoph Bumiller [Tue, 28 Jul 2009 22:51:35 +0000 (00:51 +0200)]
nv50: fix sx/dx typo in transfer_rect_m2mf

15 years agonv50: fix viewport transform
Christoph Bumiller [Tue, 28 Jul 2009 23:21:41 +0000 (01:21 +0200)]
nv50: fix viewport transform

The translation also needs to be inverted, and in bypass mode
the state tracker incorrectly assumes that Y = 0 = TOP, so we
need inversion there to; NDC clipping has to be deactivated
explicitly.

15 years agonv50: use correct scissor reg
Christoph Bumiller [Tue, 28 Jul 2009 22:35:12 +0000 (00:35 +0200)]
nv50: use correct scissor reg

15 years agor600: fix tex clamp modes
Alex Deucher [Tue, 28 Jul 2009 22:09:38 +0000 (18:09 -0400)]
r600: fix tex clamp modes

This makes texwrap look better.

15 years agor600: implement texture border color
Alex Deucher [Tue, 28 Jul 2009 21:59:54 +0000 (17:59 -0400)]
r600: implement texture border color

15 years agor600: fix flat shading
Alex Deucher [Tue, 28 Jul 2009 20:58:41 +0000 (16:58 -0400)]
r600: fix flat shading

Set the flat shading bit on the appropriate PS input
depending on the type of attribute it is.  The VS output
and PS input routing should probably be made more dynamic
at some point.  We may want to use semantic ids to make
it easier.

15 years agor600: don't call r700UpdateShaders twice for each render
Alex Deucher [Tue, 28 Jul 2009 19:58:01 +0000 (15:58 -0400)]
r600: don't call r700UpdateShaders twice for each render

15 years agor600: move r700TranslateFragmentShader into r700UpdateShaders
Alex Deucher [Tue, 28 Jul 2009 19:53:45 +0000 (15:53 -0400)]
r600: move r700TranslateFragmentShader into r700UpdateShaders

15 years agoglx: assign per screen driver configs (DRISW)
RALOVICH, Kristóf [Thu, 23 Jul 2009 15:05:59 +0000 (17:05 +0200)]
glx: assign per screen driver configs (DRISW)

15 years agoglx: assign per screen driver configs (DRI)
RALOVICH, Kristóf [Thu, 23 Jul 2009 15:05:50 +0000 (17:05 +0200)]
glx: assign per screen driver configs (DRI)

15 years agoglx: assign per screen driver configs (DRI2)
RALOVICH, Kristóf [Thu, 23 Jul 2009 15:05:43 +0000 (17:05 +0200)]
glx: assign per screen driver configs (DRI2)

15 years agoglx: properly release DRI configs
RALOVICH, Kristóf [Thu, 23 Jul 2009 15:04:52 +0000 (17:04 +0200)]
glx: properly release DRI configs

Release per screen DRI driver configs during screen destruction.

15 years agoglx: cache DRI configs in __GLXscreenConfigsRec
RALOVICH, Kristóf [Thu, 23 Jul 2009 15:03:54 +0000 (17:03 +0200)]
glx: cache DRI configs in __GLXscreenConfigsRec

15 years agor600: disable flat shade fix in 506bacb8e40b0a170a4b620113506925d2333735
Alex Deucher [Tue, 28 Jul 2009 15:10:38 +0000 (11:10 -0400)]
r600: disable flat shade fix in 506bacb8e40b0a170a4b620113506925d2333735

This breaks textures.  We need to only set this bit for
attributes that that need flat shading.

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Tue, 28 Jul 2009 14:58:25 +0000 (08:58 -0600)]
Merge branch 'mesa_7_5_branch'

Conflicts:

Makefile
configs/default
docs/relnotes.html
src/mesa/main/version.h