mesa.git
15 years agor300: rewrite FOGC and HPOS attribs handling
Maciej Cencora [Sun, 5 Jul 2009 00:32:51 +0000 (02:32 +0200)]
r300: rewrite FOGC and HPOS attribs handling

Rewrite vertex and fragment programs so that we don't have to do any hacks on lower level.

15 years agor300: bind vertex program to fragment program
Maciej Cencora [Sun, 5 Jul 2009 00:03:32 +0000 (02:03 +0200)]
r300: bind vertex program to fragment program

15 years agor300: recalculate used inputs and outputs after dead code removal
Maciej Cencora [Sat, 4 Jul 2009 12:57:42 +0000 (14:57 +0200)]
r300: recalculate used inputs and outputs after dead code removal

15 years agor300: move fragment program selection before vertex program selection
Maciej Cencora [Sat, 4 Jul 2009 11:17:35 +0000 (13:17 +0200)]
r300: move fragment program selection before vertex program selection

Prepare for wpos and fogc handling rewrite.

15 years agor300: implement proper IsProgramNative check for vertex programs
Maciej Cencora [Fri, 3 Jul 2009 18:14:24 +0000 (20:14 +0200)]
r300: implement proper IsProgramNative check for vertex programs

15 years agor300: don't modify original vertex program
Maciej Cencora [Fri, 3 Jul 2009 18:06:23 +0000 (20:06 +0200)]
r300: don't modify original vertex program

Keep the original vertex program untouched because it may be needed after some state change for generating new r300 specific vertex program.

15 years agor300: cache translated fragment programs
Maciej Cencora [Sat, 4 Jul 2009 11:26:49 +0000 (13:26 +0200)]
r300: cache translated fragment programs

15 years agor300: update state parameters only once per rendering operation
Maciej Cencora [Sat, 4 Jul 2009 10:56:31 +0000 (12:56 +0200)]
r300: update state parameters only once per rendering operation

15 years agor300: translate non native insts earlier for easier debugging
Maciej Cencora [Wed, 1 Jul 2009 16:43:14 +0000 (18:43 +0200)]
r300: translate non native insts earlier for easier debugging

15 years agor300: print vertex program after adding artificial output insts
Maciej Cencora [Mon, 29 Jun 2009 19:52:39 +0000 (21:52 +0200)]
r300: print vertex program after adding artificial output insts

15 years agor300: use mesa provided function for adding MVP code
Maciej Cencora [Mon, 29 Jun 2009 19:48:35 +0000 (21:48 +0200)]
r300: use mesa provided function for adding MVP code

15 years agor300: simplify insert_wpos a little
Maciej Cencora [Mon, 29 Jun 2009 19:39:59 +0000 (21:39 +0200)]
r300: simplify insert_wpos a little

15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Mon, 13 Jul 2009 14:47:37 +0000 (08:47 -0600)]
Merge branch 'mesa_7_5_branch'

15 years agoradeon: port more front fixes from intel.
Dave Airlie [Mon, 13 Jul 2009 15:22:17 +0000 (01:22 +1000)]
radeon: port more front fixes from intel.

Port fixes to read buffer from front.

15 years agoradeon/r200: fix color masking under dri2
Dave Airlie [Mon, 13 Jul 2009 13:41:32 +0000 (23:41 +1000)]
radeon/r200: fix color masking under dri2

Need to retrieve the bits from the rrb not from screen struct

15 years agoradeon: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.
Dave Airlie [Mon, 13 Jul 2009 13:09:17 +0000 (23:09 +1000)]
radeon: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.

The _Enabled field isn't updated at the point that DrawBuffers is called,
and the Driver.Enable() function does the testing for stencil buffer
presence anyway.

15 years agoradeon/fbo: stencil bits fix from Michel in intel fbo code
Dave Airlie [Mon, 13 Jul 2009 13:02:54 +0000 (23:02 +1000)]
radeon/fbo: stencil bits fix from Michel in intel fbo code

15 years agor128: fix two-sided lighting segfault seen in GLUT's olight demo
Peteri Andras [Mon, 13 Jul 2009 14:03:16 +0000 (08:03 -0600)]
r128: fix two-sided lighting segfault seen in GLUT's olight demo

15 years agointel: Bump driver data, add RC3 tag
Ian Romanick [Mon, 13 Jul 2009 04:07:38 +0000 (21:07 -0700)]
intel: Bump driver data, add RC3 tag

15 years agoi965: add support for new chipsets
Xiang, Haihao [Mon, 13 Jul 2009 02:48:43 +0000 (10:48 +0800)]
i965: add support for new chipsets

1. new PCI ids
2. fix some 3D commands on new chipset
3. fix send instruction on new chipset
4. new VUE vertex header
5. ff_sync message (added by Zou Nan Hai <nanhai.zou@intel.com>)
6. the offset in JMPI is in unit of 64bits on new chipset
7. new cube map layout

15 years agor300: move fallback warnings inside fallback debugging
Dave Airlie [Sun, 12 Jul 2009 11:35:59 +0000 (21:35 +1000)]
r300: move fallback warnings inside fallback debugging

random output is bad

15 years agor300: fix clear mask to not use sw if not necessary
Dave Airlie [Sun, 12 Jul 2009 11:35:24 +0000 (21:35 +1000)]
r300: fix clear mask to not use sw if not necessary

15 years agoradeon: Fix crash when rendering to incomplete texture and other formats
Nicolai Hähnle [Sun, 12 Jul 2009 09:18:43 +0000 (11:18 +0200)]
radeon: Fix crash when rendering to incomplete texture and other formats

It is possible to bind texture images of an incomplete mipmapped texture.
Software fallbacks in this case incorrectly tried to mmap the entire texture.

Additionally, add span functions for 1555 and 4444 formats.

This fixes crashes in piglit's fbo-readpixels test; unfortunately, the test
itself still fails - this needs to be investigated.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
15 years agoradeon: update clear code from Intel codebase.
Dave Airlie [Sun, 12 Jul 2009 07:28:14 +0000 (17:28 +1000)]
radeon: update clear code from Intel codebase.

This updates some of the clear code from Intel gives a 5x clearspd perf
for me here. played openarena also, not sure if the viewport changes
broke anything,

15 years agoradeon: fbo fix firecube crashes
Dave Airlie [Sun, 12 Jul 2009 02:13:40 +0000 (12:13 +1000)]
radeon: fbo fix firecube crashes

it might still be misrendering not sure

15 years agoradeon: Fix scissor rectangle calculation when rendering to FBO.
Michel Dänzer [Sat, 11 Jul 2009 18:25:09 +0000 (20:25 +0200)]
radeon: Fix scissor rectangle calculation when rendering to FBO.

fgl_glxgears -fbo runs, though the gears don't look right yet.

15 years agogallium: compare the actual register, not all the inputs
Zack Rusin [Sat, 11 Jul 2009 17:48:41 +0000 (13:48 -0400)]
gallium: compare the actual register, not all the inputs

otherwise we decrement indexes for all registers

15 years agotgsi: update some assertions
Brian Paul [Fri, 10 Jul 2009 22:26:09 +0000 (16:26 -0600)]
tgsi: update some assertions

15 years agotgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE
Brian Paul [Fri, 10 Jul 2009 21:44:48 +0000 (15:44 -0600)]
tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE

Same story as in the tgsi_dump.c code (see prev commit).

15 years agotgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE
Brian Paul [Fri, 10 Jul 2009 21:41:26 +0000 (15:41 -0600)]
tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE

Fixes TGSI dump output when front/back-face register is declared.

Also, add some assertions to make sure the semantic/interpolate string
arrays have as many elements as there are tokens in the p_shader_tokens.h
file.  That should catch problems like this in the future.

15 years agost/mesa: implement indirect addressing for destination registers
Brian Paul [Fri, 10 Jul 2009 19:07:45 +0000 (13:07 -0600)]
st/mesa: implement indirect addressing for destination registers

15 years agotgis: implement indirect addressing for destination registers
Brian Paul [Fri, 10 Jul 2009 19:07:16 +0000 (13:07 -0600)]
tgis: implement indirect addressing for destination registers

Includes the TGSI interpreter, but not the SSE/PPC/etc code generators.

15 years agovbo: fix vbo/dlist memory leak
Brian Paul [Fri, 10 Jul 2009 18:55:30 +0000 (12:55 -0600)]
vbo: fix vbo/dlist memory leak

Based on a patch by kristof.ralovich@gmail.com

15 years agodemos: set 4th component of texcoord to 1.0
Brian Paul [Thu, 9 Jul 2009 19:59:03 +0000 (13:59 -0600)]
demos: set 4th component of texcoord to 1.0

Avoid potential randomness in resulting texcoords.

15 years agoradeon: enable GL_NV_texture_rectangle under dri2.
Dave Airlie [Fri, 10 Jul 2009 17:15:58 +0000 (03:15 +1000)]
radeon: enable GL_NV_texture_rectangle under dri2.

15 years agoradeon: set texture in state properly.
Dave Airlie [Fri, 10 Jul 2009 17:01:52 +0000 (03:01 +1000)]
radeon: set texture in state properly.

make sure to turn off when no texture is used in hw

15 years agoradeon: make swtcl emit size bigger
Dave Airlie [Fri, 10 Jul 2009 17:01:04 +0000 (03:01 +1000)]
radeon: make swtcl emit size bigger

15 years agoRemove stale reference to non-Gallium nouveau driver from configure.ac.
Michel Dänzer [Fri, 10 Jul 2009 12:49:46 +0000 (14:49 +0200)]
Remove stale reference to non-Gallium nouveau driver from configure.ac.

15 years agomesa: From float type modifier from values to large for singles
Ian Romanick [Tue, 23 Jun 2009 01:22:51 +0000 (18:22 -0700)]
mesa: From float type modifier from values to large for singles

The values 2147483648.0 and 4294967294.0 are too larget to be stored in single
precision floats.  Forcing these to be singles causes bits to be lost, which
results in errors in some pixel transfer tests.

This fixes bug #22344.
(cherry picked from commit 70e72070fce6aa1e0918dcc62c1949465cee69f7)

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

15 years agodocs: document gl_TextureMatrix[i][j] array indexing bug fix
Brian Paul [Thu, 9 Jul 2009 14:04:07 +0000 (08:04 -0600)]
docs: document gl_TextureMatrix[i][j] array indexing bug fix

15 years agoglsl: do const parameter optimization for array element actual parameters
Brian Paul [Thu, 9 Jul 2009 13:58:50 +0000 (07:58 -0600)]
glsl: do const parameter optimization for array element actual parameters

When a function parameter is const-qualified we can avoid making a copy
of the actual parameter (we basically do a search/replace when inlining).
This is now done for array element params too, resulting in better code
(fewer MOV instructions).

We should allow some other types of function arguments here but let's be
conservative for the moment.

15 years agoglsl: fix incorrect indexing for gl_TextureMatrix[i][j]
Brian Paul [Thu, 9 Jul 2009 13:57:29 +0000 (07:57 -0600)]
glsl: fix incorrect indexing for gl_TextureMatrix[i][j]

The two indexes were mixed up when accessing a row of a matrix in an array
of matrices.

15 years agodocs: document glMaterial/glShadeModel display list optimization
Brian Paul [Wed, 8 Jul 2009 20:14:03 +0000 (14:14 -0600)]
docs: document glMaterial/glShadeModel display list optimization

15 years agomesa: only use fallback texture when using shaders, not fixed-function (take two)
Brian Paul [Tue, 5 May 2009 22:21:20 +0000 (16:21 -0600)]
mesa: only use fallback texture when using shaders, not fixed-function (take two)

The semantics are a little different for shaders vs. fixed-function when
trying to use an incomplete texture.  The fallback texture returning
(0,0,0,1) should only be used with shaders.  For fixed function, the texture
unit is truly disabled/ignored.

Fixes glean fbo test regression.
(cherry picked from commit 01e16befd4809e3e93ee7855a4a5d7df9fe010d9)
(cherry picked from commit 51325f44d1e7e62b47795a79f8038d10dc5bc30b)
[anholt: squashed these two together from master, skipping the mess in between]

15 years agogallium: fixup register indexes for fog/frontface/point coord
Zack Rusin [Tue, 7 Jul 2009 19:48:50 +0000 (12:48 -0700)]
gallium: fixup register indexes for fog/frontface/point coord

15 years agogallium: Fixes for clobbering stencil values in combined depth/stencil textures.
Michel Dänzer [Tue, 7 Jul 2009 12:49:52 +0000 (14:49 +0200)]
gallium: Fixes for clobbering stencil values in combined depth/stencil textures.

Also fix one case where a 32 bit depth value was incorrectly converted to a
combined depth/stencil value.

15 years agoGLX/DRI1: Mark GLX visuals with depth != screen depth non-conformant.
Michel Dänzer [Tue, 7 Jul 2009 11:52:35 +0000 (13:52 +0200)]
GLX/DRI1: Mark GLX visuals with depth != screen depth non-conformant.

Such visuals are subject to automatic compositing in the X server, so DRI1
can't render to them properly.

15 years agogallium: Only set FRONT_STATUS_COPY_OF_BACK if there is a back buffer.
Michel Dänzer [Tue, 7 Jul 2009 10:17:04 +0000 (12:17 +0200)]
gallium: Only set FRONT_STATUS_COPY_OF_BACK if there is a back buffer.

Fixes potential crash when SwapBuffers is called but there's no back buffer.

15 years agogallium: more fog extraction fixes
Zack Rusin [Tue, 7 Jul 2009 01:33:56 +0000 (21:33 -0400)]
gallium: more fog extraction fixes

fix the cases when fog coord/front face/point coord are used in the same
shader.

15 years agodemos: Fix vsync checking in glxgears
Ian Romanick [Mon, 6 Jul 2009 18:36:17 +0000 (11:36 -0700)]
demos: Fix vsync checking in glxgears

Of course glXGetVideoSyncSGI doesn't return the swap interval.  The feature
only exists in the Mesa extension... which is the whole reason I created the
Mesa extension!  Note that the Mesa extension allows drivers to default to a
swap interval of 0.  If the Mesa extension exists, use its value.  Only
consider the SGI extension when the Mesa extension is not available.

Fixes bug #22604.

15 years agowgl: Make the stw_framebuffer destructions threadsafe.
José Fonseca [Mon, 6 Jul 2009 17:23:37 +0000 (18:23 +0100)]
wgl: Make the stw_framebuffer destructions threadsafe.

Ensure no other thread is accessing a framebuffer when it is being destroyed by
acquiring both the global and per-framebuffer mutexes. Normal access only
needs the global lock to walk the linked list and acquire the per-framebuffer
mutex.

15 years agowgl: Check for multiple threads before GET_CURRENT_CONTEXT.
José Fonseca [Mon, 6 Jul 2009 16:40:08 +0000 (17:40 +0100)]
wgl: Check for multiple threads before GET_CURRENT_CONTEXT.

Fixes wglthreads -- the 2nd thread MakeCurrent call was trying to flush
the first thread context while still in use.

15 years agowgl: Listen to WM_WINDOWPOSCHANGED instead of WM_SIZE messages.
José Fonseca [Mon, 6 Jul 2009 16:08:37 +0000 (17:08 +0100)]
wgl: Listen to WM_WINDOWPOSCHANGED instead of WM_SIZE messages.

According to
http://blogs.msdn.com/oldnewthing/archive/2008/01/15/7113860.aspx
WM_SIZE is generated from WM_WINDOWPOSCHANGED by DefWindowProc so it
can be masked out by the application.

Also there were some weird bogus WM_SIZE 0x0 messages when starting
sharedtex_mt which we don't get like this.

15 years agoMerge branch 'mesa_7_5_branch'
Jakob Bornecrantz [Sun, 5 Jul 2009 02:14:41 +0000 (04:14 +0200)]
Merge branch 'mesa_7_5_branch'

15 years agodemos: indentation fix
Brian Paul [Wed, 8 Jul 2009 19:59:03 +0000 (13:59 -0600)]
demos: indentation fix

15 years agodemos: use glEnable/DisableClientState() for vertex arrays
Brian Paul [Wed, 8 Jul 2009 19:58:30 +0000 (13:58 -0600)]
demos: use glEnable/DisableClientState() for vertex arrays

15 years agoglx: death to RCS tag
RALOVICH, Kristóf [Sun, 5 Jul 2009 14:29:44 +0000 (16:29 +0200)]
glx: death to RCS tag

15 years agor300g: Remove VAP_CNTL_STATUS from invariant state.
Corbin Simpson [Wed, 8 Jul 2009 18:59:56 +0000 (11:59 -0700)]
r300g: Remove VAP_CNTL_STATUS from invariant state.

Seriously.

15 years agor300g: Disable MSPOS registers for glisse's CS security checker.
Corbin Simpson [Wed, 8 Jul 2009 18:55:27 +0000 (11:55 -0700)]
r300g: Disable MSPOS registers for glisse's CS security checker.

These will come back in someday, when we can properly use them.

15 years agor300-gallium: Unify sampler and texture emit.
Corbin Simpson [Tue, 19 May 2009 00:06:42 +0000 (17:06 -0700)]
r300-gallium: Unify sampler and texture emit.

They have to cross into each other's registers.

15 years agor300-gallium: Mipmap setup.
Corbin Simpson [Wed, 8 Jul 2009 18:30:59 +0000 (11:30 -0700)]
r300-gallium: Mipmap setup.
(cherry picked from commit 88c01a15da5639dd68a6a0133724994cb66f1316)

15 years agor300g: Add endian fix to vertex fetcher setup.
Corbin Simpson [Wed, 8 Jul 2009 18:27:26 +0000 (11:27 -0700)]
r300g: Add endian fix to vertex fetcher setup.

As reported and initially tested by MrCooper.

15 years agogallium: Add endian detection to p_config.
Corbin Simpson [Wed, 8 Jul 2009 18:26:52 +0000 (11:26 -0700)]
gallium: Add endian detection to p_config.

15 years agor300: fix regression introduced by ca13937ef97c7779f639dcfc95b3798a11de01bd
Maciej Cencora [Sat, 4 Jul 2009 09:33:47 +0000 (11:33 +0200)]
r300: fix regression introduced by ca13937ef97c7779f639dcfc95b3798a11de01bd

Stride == 0 means that we value for first vertex should be copied to every other vertices (e.g. constant color).

This fixes glean/vertProg1 and sauerbraten with enabled shaders.

15 years agoradeon: fix copy and paste typo
Maciej Cencora [Sun, 5 Jul 2009 14:17:12 +0000 (16:17 +0200)]
radeon: fix copy and paste typo

15 years agomesa/vbo: always recalculate min_index and max_index when splitting vertices
Maciej Cencora [Sun, 5 Jul 2009 13:00:42 +0000 (15:00 +0200)]
mesa/vbo: always recalculate min_index and max_index when splitting vertices

15 years agoprogs/tests: Use compressed texture in mipmap_comp_tests
Jakob Bornecrantz [Sat, 4 Jul 2009 14:01:45 +0000 (16:01 +0200)]
progs/tests: Use compressed texture in mipmap_comp_tests

15 years agointel: Fix flipped Y for glDrawPixels(GL_STENCIL_INDEX) to window system.
Eric Anholt [Tue, 7 Jul 2009 22:10:21 +0000 (15:10 -0700)]
intel: Fix flipped Y for glDrawPixels(GL_STENCIL_INDEX) to window system.

Even after fixing bugs in this code, it doesn't make me feel any cleaner.
Fixes piglit stencil-drawpixels.

15 years agointel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.
Eric Anholt [Tue, 7 Jul 2009 20:39:29 +0000 (13:39 -0700)]
intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.

15 years agoi965: Remove BRW_NEW_INPUT_VARYING
Eric Anholt [Mon, 6 Jul 2009 23:47:57 +0000 (16:47 -0700)]
i965: Remove BRW_NEW_INPUT_VARYING

This state flag has been unused since the ffvertex_prog move to core.

15 years agoCap array elements at 0 when passed an invalid pointer for an array object.
Eric Anholt [Wed, 25 Feb 2009 19:57:44 +0000 (11:57 -0800)]
Cap array elements at 0 when passed an invalid pointer for an array object.

Otherwise, a pointer greater than the size would underflow and give a large
maximum element.

Reviewed-by: Brian Paul <brianp@vmware.com> (previous version)
15 years agoi965: fix fetching constants from constant buffer in glsl path
Roland Scheidegger [Fri, 26 Jun 2009 18:38:07 +0000 (20:38 +0200)]
i965: fix fetching constants from constant buffer in glsl path

the driver used to overwrite grf0 then use implicit move by send instruction
to move contents of grf0 to mrf1. However, we must not overwrite grf0 since
it's still used later for fb write.
Instead, do the move directly do mrf1 (we could use implicit move from another
grf reg to mrf1 but since we need a mov to encode the data anyway it doesn't
seem to make sense).
I think the dp_READ/WRITE_16 functions may suffer from the same issue.
While here also remove unnecessary msg_reg_nr parameter from the dataport
functions since always message register 1 is used.

15 years agoi965: Remove bad constant buffer constant-reg-already-loaded optimization.
Eric Anholt [Thu, 7 May 2009 04:44:13 +0000 (21:44 -0700)]
i965: Remove bad constant buffer constant-reg-already-loaded optimization.

Thanks to branching, the state of c->current_const[i].index at the point
of emitting constant loads for this instruction may not match the actual
constant currently loaded in the reg at runtime.  Fixes a regression in my
GLSL program for idr's class since b58b3a786aa38dcc9d72144c2cc691151e46e3d5.

15 years agoMerge branch 'mesa_7_5_branch'
Jakob Bornecrantz [Sat, 4 Jul 2009 05:43:01 +0000 (07:43 +0200)]
Merge branch 'mesa_7_5_branch'

15 years agoprogs/tests: Tests more views in mipmap_comp_tests
Jakob Bornecrantz [Sat, 4 Jul 2009 05:40:34 +0000 (07:40 +0200)]
progs/tests: Tests more views in mipmap_comp_tests

15 years agoMerge commit 'origin/openvg-1.0'
Zack Rusin [Tue, 7 Jul 2009 01:43:26 +0000 (21:43 -0400)]
Merge commit 'origin/openvg-1.0'

15 years agogallium: rearrange some members to avoid memory holes/padding
Zack Rusin [Tue, 23 Jun 2009 23:12:46 +0000 (19:12 -0400)]
gallium: rearrange some members to avoid memory holes/padding

plus it saves us a cacheline in the cso

15 years agopipebuffer: handle possible null pointer dereference
Zack Rusin [Sun, 21 Jun 2009 01:36:40 +0000 (21:36 -0400)]
pipebuffer: handle possible null pointer dereference

reported by clang static analyzer

15 years agocso: possible null pointer dereference
Zack Rusin [Sun, 21 Jun 2009 01:25:47 +0000 (21:25 -0400)]
cso: possible null pointer dereference

reported by clang static analyzer

15 years agoutil: fix possible null pointer usage
Zack Rusin [Sun, 21 Jun 2009 01:19:57 +0000 (21:19 -0400)]
util: fix possible null pointer usage

found by the clang static analyzer

15 years agoexa: some infrastucture work for accelerating composite
Zack Rusin [Mon, 8 Jun 2009 04:07:04 +0000 (00:07 -0400)]
exa: some infrastucture work for accelerating composite

15 years agoradeon: ensure cmdbuf space for state + AOS is available
Dave Airlie [Mon, 6 Jul 2009 10:35:15 +0000 (20:35 +1000)]
radeon: ensure cmdbuf space for state + AOS is available

The problem is if we find out later we don't have any cmdbuf space but
we've already written the arrays to the DMA buffer object, we end up
emitting the current cmdbuf which has references to the current DMA object
we then send that to the hw and we can't reference the arrays we just emitted
to the old DMA buffer. things go bad, crash boom.

This can probably be tuned further + swtcl probably needs some fixes

15 years agor200: fix makefile
Dave Airlie [Mon, 6 Jul 2009 07:46:36 +0000 (17:46 +1000)]
r200: fix makefile

15 years agoradeon: fixup FBO depth 24 allocations to avoid assert
Dave Airlie [Mon, 6 Jul 2009 05:50:24 +0000 (15:50 +1000)]
radeon: fixup FBO depth 24 allocations to avoid assert

15 years agoradeon/r200/r300: port to new space checking code in libdrm
Dave Airlie [Mon, 6 Jul 2009 04:15:00 +0000 (14:15 +1000)]
radeon/r200/r300: port to new space checking code in libdrm

This moves a big chunk of the space checking code into libdrm so
it can be shared by the DDX.

15 years agoradeon-gallium: Compile warning fix.
Corbin Simpson [Sun, 5 Jul 2009 18:56:40 +0000 (11:56 -0700)]
radeon-gallium: Compile warning fix.

Fixes flush during validation, in case a buffer is double-validated.

15 years agoradeon-gallium: Use FLINK to do proper global buffers.
Corbin Simpson [Sun, 5 Jul 2009 18:55:47 +0000 (11:55 -0700)]
radeon-gallium: Use FLINK to do proper global buffers.

15 years agoradeon-gallium: Wait for BOs before mapping them.
Corbin Simpson [Sun, 5 Jul 2009 18:29:13 +0000 (11:29 -0700)]
radeon-gallium: Wait for BOs before mapping them.

15 years agor300: fix vertex limits
Maciej Cencora [Mon, 29 Jun 2009 17:50:39 +0000 (19:50 +0200)]
r300: fix vertex limits

- don't limit vertex count if we are using indices
- max indices count is 65535 not 65536
- remove some comments that don't apply anymore
- remove unreachable code

15 years agoMerge branch 'mesa_7_5_branch'
Jakob Bornecrantz [Fri, 3 Jul 2009 16:53:58 +0000 (18:53 +0200)]
Merge branch 'mesa_7_5_branch'

Conflicts:
src/mesa/main/dlist.c
src/mesa/vbo/vbo_save_api.c

15 years agointel: Also update stencil bits in intel_update_wrapper().
Michel Dänzer [Fri, 3 Jul 2009 15:50:15 +0000 (17:50 +0200)]
intel: Also update stencil bits in intel_update_wrapper().

Fixes assertion failure when binding depth/stencil texture to FBO stencil
attachment.

15 years agoprogs: revert damage to progs/SConscript from recent compressed texture commit
Keith Whitwell [Fri, 3 Jul 2009 15:40:03 +0000 (16:40 +0100)]
progs: revert damage to progs/SConscript from recent compressed texture commit

15 years agomesa/shaders: fix gl_NormalMatrix state parameters
Keith Whitwell [Fri, 3 Jul 2009 13:26:26 +0000 (14:26 +0100)]
mesa/shaders: fix gl_NormalMatrix state parameters

gl_NormalMatrix is the inverse transpose of the modelview matrix, but
as every matrix here needs to be transposed, we end up with
{MODELVIEW_MATRIX, INVERSE}.

15 years agost/wgl: don't advertise WGL_EXT_swap_interval string
Keith Whitwell [Fri, 3 Jul 2009 09:37:14 +0000 (10:37 +0100)]
st/wgl: don't advertise WGL_EXT_swap_interval string

This is a tweak to a previous fix -- it's not necessary to actually
advertise this extension to prevent these games from crashing -- they
ignore the extension string anyway. It's sufficient to just have
GetProcAddress return some dummy function addresses for SwapInterval.

Given we don't really implement this funcitonality, this is a better
fix.

15 years agowgl: Lookup framebuffers by HWND whenever possible.
José Fonseca [Fri, 3 Jul 2009 13:21:55 +0000 (14:21 +0100)]
wgl: Lookup framebuffers by HWND whenever possible.

Some applications create several HDCs for the same window, so spite the WGL
API is geared towards HDCs it is not reliable searching by HDC.

15 years agoradeon: Wait for BO idle if necessary before mapping it.
Michel Dänzer [Fri, 3 Jul 2009 10:44:19 +0000 (12:44 +0200)]
radeon: Wait for BO idle if necessary before mapping it.

Fixes fighting between GPU and software rendering with TTM.

15 years agor300: Guard debugging output.
Michel Dänzer [Fri, 3 Jul 2009 10:44:02 +0000 (12:44 +0200)]
r300: Guard debugging output.

15 years agointel: Fall back on glBitmap with fog enabled.
Eric Anholt [Fri, 3 Jul 2009 02:21:22 +0000 (19:21 -0700)]
intel: Fall back on glBitmap with fog enabled.

We would have to build the program with the appropriate fog mode, and
also supply the fog coordinate if appropriate.

Bug #19413.

15 years agointel: Flush when mapping buffer objects so writes don't get reordered.
Eric Anholt [Fri, 3 Jul 2009 01:02:44 +0000 (18:02 -0700)]
intel: Flush when mapping buffer objects so writes don't get reordered.

While GEM covers this for execution it knows about, it doesn't know about
the batchbuffer we're preparing.  Fixes piglit vbo-map-remap.c testcase.