mesa.git
14 years agosoftpipe: make vertex state functions static
Brian Paul [Sat, 25 Sep 2010 20:06:58 +0000 (14:06 -0600)]
softpipe: make vertex state functions static

14 years agosoftpipe: make sampler state functions static
Brian Paul [Sat, 25 Sep 2010 20:02:38 +0000 (14:02 -0600)]
softpipe: make sampler state functions static

14 years agosoftpipe: make blend/stencil/depth functions static
Brian Paul [Sat, 25 Sep 2010 19:58:41 +0000 (13:58 -0600)]
softpipe: make blend/stencil/depth functions static

14 years agosoftpipe: make shader-related functions static
Brian Paul [Sat, 25 Sep 2010 19:54:24 +0000 (13:54 -0600)]
softpipe: make shader-related functions static

14 years agosoftpipe: rename sp_state_fs.c -> sp_state_shader.c
Brian Paul [Sat, 25 Sep 2010 19:50:30 +0000 (13:50 -0600)]
softpipe: rename sp_state_fs.c -> sp_state_shader.c

14 years agost/dri: Remove unnecessary header.
Vinson Lee [Sat, 25 Sep 2010 19:38:29 +0000 (12:38 -0700)]
st/dri: Remove unnecessary header.

14 years agoswrast: update comments for REMAINDER() macro
Brian Paul [Sat, 25 Sep 2010 19:10:26 +0000 (13:10 -0600)]
swrast: update comments for REMAINDER() macro

14 years agogallivm: fix repeat() function for NPOT textures
Brian Paul [Sat, 25 Sep 2010 19:09:25 +0000 (13:09 -0600)]
gallivm: fix repeat() function for NPOT textures

The trick of casting the coord to an unsigned value only works for POT
textures.  Add a bias instead.  This fixes a few piglit texwrap failures.

14 years agosoftpipe: fix repeat() function for NPOT textures
Brian Paul [Sat, 25 Sep 2010 19:06:31 +0000 (13:06 -0600)]
softpipe: fix repeat() function for NPOT textures

The trick of casting the coord to an unsigned value only works for POT
textures.  Add a bias instead.  This fixes a few piglit texwrap failures.

14 years agointel: Remove unnecessary header.
Vinson Lee [Sat, 25 Sep 2010 19:33:28 +0000 (12:33 -0700)]
intel: Remove unnecessary header.

14 years agor600g: Disable unused variables.
Vinson Lee [Sat, 25 Sep 2010 19:28:47 +0000 (12:28 -0700)]
r600g: Disable unused variables.

The variables are used only in currently disabled code.

Fixes this GCC warning.
r600_context.c: In function 'r600_flush':
r600_context.c:76: warning: unused variable 'dname'
r600_context.c:75: warning: unused variable 'dc'

14 years agor600g: Remove unused variable.
Vinson Lee [Sat, 25 Sep 2010 19:25:44 +0000 (12:25 -0700)]
r600g: Remove unused variable.

Fixes this GCC warning.
r600_draw.c: In function 'r600_draw_common':
r600_draw.c:71: warning: unused variable 'format'

14 years agor600g: Remove unused variable.
Vinson Lee [Sat, 25 Sep 2010 19:21:10 +0000 (12:21 -0700)]
r600g: Remove unused variable.

Fixes this GCC warning.
r600_screen.c: In function 'r600_screen_create':
r600_screen.c:239: warning: unused variable 'family'

14 years agonv50: fix/handle a few more PIPE_CAPs
Christoph Bumiller [Sat, 25 Sep 2010 17:34:23 +0000 (19:34 +0200)]
nv50: fix/handle a few more PIPE_CAPs

14 years agonv50: use CLEAR_BUFFERS for surface fills
Christoph Bumiller [Fri, 24 Sep 2010 20:46:51 +0000 (22:46 +0200)]
nv50: use CLEAR_BUFFERS for surface fills

The 2D engine's fill doesn't seem suited for RGBA32F or ZS buffers.

14 years agonv50: use formats table in nv50_surface.c
Christoph Bumiller [Fri, 24 Sep 2010 18:33:10 +0000 (20:33 +0200)]
nv50: use formats table in nv50_surface.c

14 years agor600g: fix vertex resource & polygon offset
Jerome Glisse [Sat, 25 Sep 2010 01:34:56 +0000 (21:34 -0400)]
r600g: fix vertex resource & polygon offset

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: add eg db count control register.
Dave Airlie [Sat, 25 Sep 2010 10:23:44 +0000 (20:23 +1000)]
r600g: add eg db count control register.

14 years agor600g: make index bias fix for evergreen
Dave Airlie [Sat, 25 Sep 2010 09:23:05 +0000 (19:23 +1000)]
r600g: make index bias fix for evergreen

14 years agogallivm: Remove dead experimental code.
José Fonseca [Sat, 25 Sep 2010 11:40:01 +0000 (12:40 +0100)]
gallivm: Remove dead experimental code.

14 years agollvmpipe: handle up to 8 planes in triangle binner
Keith Whitwell [Fri, 24 Sep 2010 10:18:38 +0000 (11:18 +0100)]
llvmpipe: handle up to 8 planes in triangle binner

14 years agollvmpipe: handle FACING interpolants in line and point setup
Keith Whitwell [Fri, 24 Sep 2010 09:30:52 +0000 (10:30 +0100)]
llvmpipe: handle FACING interpolants in line and point setup

14 years agogallivm: Fetch the lod from the dynamic state when min_lod == max_lod.
José Fonseca [Sat, 25 Sep 2010 11:13:45 +0000 (12:13 +0100)]
gallivm: Fetch the lod from the dynamic state when min_lod == max_lod.

14 years agodraw: Fullfil the new min_lod/max_lod/lod_bias/border_color dynamic state
José Fonseca [Sat, 25 Sep 2010 10:41:30 +0000 (11:41 +0100)]
draw: Fullfil the new min_lod/max_lod/lod_bias/border_color dynamic state

14 years agogallivm: optimize yuv decoding
Roland Scheidegger [Fri, 24 Sep 2010 13:17:07 +0000 (15:17 +0200)]
gallivm: optimize yuv decoding

this is more a proof to show vector shifts on x86 with per-element shift count
are evil. Since we can avoid the shift with a single compare/select, use that
instead. Replaces more than 20 instructions (and slow ones at that) with about 3,
and cuts compiled shader size with mesa's yuvsqure demo by over 10%
(no performance measurements done - but selection is blazing fast).
Might want to revisit that for future cpus - unfortunately AVX won't have vector
shifts neither, but AMD's XOP will, but even in that case using selection here
is probably not slower.

14 years agogallivm: don't use URem/UDiv when calculating offsets for blocks
Roland Scheidegger [Fri, 24 Sep 2010 13:02:24 +0000 (15:02 +0200)]
gallivm: don't use URem/UDiv when calculating offsets for blocks

While it's true that llvm can and will indeed replace this with bit
arithmetic (since block height/width is POT), it does so (llvm 2.7) by element
and hence extracts/shifts/reinserts each element individually.
This costs about 16 instructions (and extract is not really fast) vs. 1...

14 years agogallivm: fix copy&paste bug
Roland Scheidegger [Wed, 22 Sep 2010 15:59:00 +0000 (17:59 +0200)]
gallivm: fix copy&paste bug

looks like pot_depth should be used, not pot_height
(found by accident, not verified)

14 years agor600g: add eg poly mode code.
Dave Airlie [Sat, 25 Sep 2010 09:16:36 +0000 (19:16 +1000)]
r600g: add eg poly mode code.

14 years agomesa/mipmap: fix warning since 1acadebd6270d3604b026842b8a21360968618a0
Dave Airlie [Sat, 25 Sep 2010 08:51:24 +0000 (18:51 +1000)]
mesa/mipmap: fix warning since 1acadebd6270d3604b026842b8a21360968618a0

1acadebd6270d3604b026842b8a21360968618a0 fixed the pointer but not the cast.

14 years agor600g: Silence 'control reaches end of non-void function' warning.
Vinson Lee [Sat, 25 Sep 2010 06:48:05 +0000 (23:48 -0700)]
r600g: Silence 'control reaches end of non-void function' warning.

Fixes this GCC warning.
r600_hw_states.c: In function 'r600_translate_fill':
r600_state_inlines.h:136: warning: control reaches end of non-void function

14 years agor600g: Remove unused variable.
Vinson Lee [Sat, 25 Sep 2010 06:17:55 +0000 (23:17 -0700)]
r600g: Remove unused variable.

Fixes this GCC warning.
eg_hw_states.c: In function 'eg_resource':
eg_hw_states.c:525: warning: unused variable 'r'

14 years agor600g: Disable unused variables.
Vinson Lee [Sat, 25 Sep 2010 06:08:08 +0000 (23:08 -0700)]
r600g: Disable unused variables.

The variables are only used in currently disabled code.

Fixes this GCC warning.
r600_state2.c: In function 'r600_flush2':
r600_state2.c:613: warning: unused variable 'dname'
r600_state2.c:612: warning: unused variable 'dc'

14 years agor600g: Remove unused variable.
Vinson Lee [Sat, 25 Sep 2010 05:59:46 +0000 (22:59 -0700)]
r600g: Remove unused variable.

Fixes this GCC warning.
r600_buffer.c: In function 'r600_buffer_transfer_map':
r600_buffer.c:141: warning: unused variable 'rctx'

14 years agointel: Remove unnecessary headers.
Vinson Lee [Sat, 25 Sep 2010 05:55:04 +0000 (22:55 -0700)]
intel: Remove unnecessary headers.

14 years agounichrome: Remove unnecessary header.
Vinson Lee [Sat, 25 Sep 2010 05:53:40 +0000 (22:53 -0700)]
unichrome: Remove unnecessary header.

14 years agor600g: Remove unnecessary header.
Vinson Lee [Sat, 25 Sep 2010 05:48:46 +0000 (22:48 -0700)]
r600g: Remove unnecessary header.

14 years agomesa: Remove unnecessary headers.
Vinson Lee [Sat, 25 Sep 2010 05:46:14 +0000 (22:46 -0700)]
mesa: Remove unnecessary headers.

14 years agointel: Fix implicit declaration of function '_mesa_meta_Bitmap' warning.
Vinson Lee [Sat, 25 Sep 2010 05:20:43 +0000 (22:20 -0700)]
intel: Fix implicit declaration of function '_mesa_meta_Bitmap' warning.

Fix this GCC warning.
intel_pixel_bitmap.c: In function 'intelBitmap':
intel_pixel_bitmap.c:343: warning: implicit declaration of function '_mesa_meta_Bitmap'

14 years agor300g: Silence uninitialized variable warning.
Vinson Lee [Sat, 25 Sep 2010 02:33:43 +0000 (19:33 -0700)]
r300g: Silence uninitialized variable warning.

Silence this GCC warning.
r300_state_derived.c: In function 'r300_update_derived_state':
r300_state_derived.c:578: warning: 'r' may be used uninitialized in this function
r300_state_derived.c:578: note: 'r' was declared here

14 years agomesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.
Eric Anholt [Sat, 25 Sep 2010 01:40:24 +0000 (18:40 -0700)]
mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.

Fixes ARB_depth_texture/fbo-generatemipmap-formats.

14 years agointel: Improve some of the miptree debugging.
Eric Anholt [Sat, 25 Sep 2010 01:25:42 +0000 (18:25 -0700)]
intel: Improve some of the miptree debugging.

14 years agointel: More reverting of the sw fallback for depth texture border color.
Eric Anholt [Sat, 25 Sep 2010 01:19:08 +0000 (18:19 -0700)]
intel: More reverting of the sw fallback for depth texture border color.

The rest was done with 9aec1288eeae8e87adc9a99f377be536892941b2

14 years agointel: Add fallback debug to glGenerateMipmap.
Eric Anholt [Sat, 25 Sep 2010 01:00:42 +0000 (18:00 -0700)]
intel: Add fallback debug to glGenerateMipmap.

14 years agointel: Fix segfault on INTEL_DEBUG=fbo with unsupported framebuffers.
Eric Anholt [Fri, 24 Sep 2010 23:22:08 +0000 (16:22 -0700)]
intel: Fix segfault on INTEL_DEBUG=fbo with unsupported framebuffers.

14 years agoutil: fix util_pack_color for B4G4R4A4
Marek Olšák [Thu, 23 Sep 2010 20:54:08 +0000 (22:54 +0200)]
util: fix util_pack_color for B4G4R4A4

NOTE: This is a candidate for the 7.9 branch.

14 years agoi965: Add support for rendering to SARGB8 FBOs.
Eric Anholt [Fri, 24 Sep 2010 23:11:40 +0000 (16:11 -0700)]
i965: Add support for rendering to SARGB8 FBOs.

Tested with fbo-generatemipmap-formats GL_EXT_texture_srgb.  The test
still fails on SLA8, though.

14 years agointel: Corresponding FinishRenderTexture debug to BeginRenderTexture.
Eric Anholt [Fri, 24 Sep 2010 18:20:16 +0000 (11:20 -0700)]
intel: Corresponding FinishRenderTexture debug to BeginRenderTexture.

14 years agor600g: bring over fix from old path to new path
Jerome Glisse [Fri, 24 Sep 2010 21:33:30 +0000 (17:33 -0400)]
r600g: bring over fix from old path to new path

Up to 2010-09-19:
r600g: fix tiling support for ddx supplied buffers
9b146eae2521d8e5f6d3cbefa4f6f7737666313a

user buffer seems to be broken... new to fix that.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: fix evergreen new path
Jerome Glisse [Fri, 24 Sep 2010 20:17:28 +0000 (16:17 -0400)]
r600g: fix evergreen new path

glxgears seems to work, had somelockup but now they seems to have vanish.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: fix reg definition
Jerome Glisse [Fri, 24 Sep 2010 20:09:05 +0000 (16:09 -0400)]
r600g: fix reg definition

Doesn't bother fixing old path code, just disable that reg.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: fix evergreen new path
Jerome Glisse [Fri, 24 Sep 2010 19:00:08 +0000 (15:00 -0400)]
r600g: fix evergreen new path

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: fixup some evergreen register definitions
Jerome Glisse [Fri, 24 Sep 2010 18:59:28 +0000 (14:59 -0400)]
r600g: fixup some evergreen register definitions

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agoegl: Fix several 'comparison between signed and unsigned integer' warnings
Ian Romanick [Fri, 24 Sep 2010 17:54:28 +0000 (10:54 -0700)]
egl: Fix several 'comparison between signed and unsigned integer' warnings

I hate GCC for requiring the (int) cast on sizeof.

14 years agoegl_glx: Silence piles of 'unused variable' warnings
Ian Romanick [Fri, 24 Sep 2010 16:54:58 +0000 (09:54 -0700)]
egl_glx: Silence piles of 'unused variable' warnings

14 years agointel: Dead comment removal.
Eric Anholt [Fri, 24 Sep 2010 00:01:39 +0000 (17:01 -0700)]
intel: Dead comment removal.

14 years agor600c: fix mipmap stride on evergreen
Alex Deucher [Fri, 24 Sep 2010 17:20:58 +0000 (13:20 -0400)]
r600c: fix mipmap stride on evergreen

taken from Dave's r600g fix

14 years agoEGL DRI2: Silence 'missing initializer' warnings
Ian Romanick [Thu, 23 Sep 2010 16:40:58 +0000 (09:40 -0700)]
EGL DRI2: Silence 'missing initializer' warnings

14 years agoEGL DRI2: Silence piles of 'unused variable' warnings
Ian Romanick [Thu, 23 Sep 2010 16:39:42 +0000 (09:39 -0700)]
EGL DRI2: Silence piles of 'unused variable' warnings

14 years agollvmpipe: make texture border_color dynamic state
Brian Paul [Fri, 24 Sep 2010 01:16:33 +0000 (19:16 -0600)]
llvmpipe: make texture border_color dynamic state

14 years agollvmpipe: make min/max lod and lod bias dynamic state
Brian Paul [Fri, 24 Sep 2010 00:18:40 +0000 (18:18 -0600)]
llvmpipe: make min/max lod and lod bias dynamic state

Before, changing any of these sampler values triggered generation
of new JIT code.  Added a new flag for the special case of
min_lod == max_lod which is hit during auto mipmap generation.

14 years agor600g: fix compilation after change to evergreend.h
Jerome Glisse [Fri, 24 Sep 2010 14:43:57 +0000 (10:43 -0400)]
r600g: fix compilation after change to evergreend.h

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: evergreen fix for new design
Jerome Glisse [Fri, 24 Sep 2010 14:40:17 +0000 (10:40 -0400)]
r600g: evergreen fix for new design

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: move use_mem_constants flags for new designs structure alignment
Jerome Glisse [Fri, 24 Sep 2010 14:38:41 +0000 (10:38 -0400)]
r600g: move use_mem_constants flags for new designs structure alignment

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agor600g: fix typo in evergreen define (resource are in [0x30000;0x34000] range)
Jerome Glisse [Fri, 24 Sep 2010 14:37:41 +0000 (10:37 -0400)]
r600g: fix typo in evergreen define (resource are in [0x30000;0x34000] range)

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
14 years agost/mesa: use the wrapped renderbuffer in CopyPixels()
Brian Paul [Fri, 24 Sep 2010 14:26:32 +0000 (08:26 -0600)]
st/mesa: use the wrapped renderbuffer in CopyPixels()

Fixes assertion failures when copying stencil pixels.

NOTE: this is a candidate for the 7.9 branch.

14 years agost/mesa: add missing MESA_FORMAT_S8 case in st_mesa_format_to_pipe_format()
Brian Paul [Fri, 24 Sep 2010 14:24:41 +0000 (08:24 -0600)]
st/mesa: add missing MESA_FORMAT_S8 case in st_mesa_format_to_pipe_format()

NOTE: this is a candidate for the 7.9 branch.

14 years agomesa: fix assertions to handle srgb formats
Brian Paul [Fri, 24 Sep 2010 13:54:46 +0000 (07:54 -0600)]
mesa: fix assertions to handle srgb formats

http://bugs.freedesktop.org/show_bug.cgi?id=30333

NOTE: This is a candidate for the 7.9 branch.

14 years agod3d1x: CRLF -> LF in progs
Luca Barbieri [Fri, 24 Sep 2010 13:08:57 +0000 (15:08 +0200)]
d3d1x: CRLF -> LF in progs

14 years agod3d1x: stop using GLX in demos, just use the default visual
Luca Barbieri [Fri, 24 Sep 2010 13:01:04 +0000 (15:01 +0200)]
d3d1x: stop using GLX in demos, just use the default visual

14 years agod3d1x: assert if X visual is not among enumerated visuals
Luca Barbieri [Fri, 24 Sep 2010 12:52:13 +0000 (14:52 +0200)]
d3d1x: assert if X visual is not among enumerated visuals

14 years agod3d1x: don't crash on drivers not supporting vertex or geometry sampling
Luca Barbieri [Fri, 24 Sep 2010 12:28:31 +0000 (14:28 +0200)]
d3d1x: don't crash on drivers not supporting vertex or geometry sampling

14 years agonvfx: add RGB framebuffer format support in addition to BGR
Luca Barbieri [Fri, 24 Sep 2010 12:28:24 +0000 (14:28 +0200)]
nvfx: add RGB framebuffer format support in addition to BGR

14 years agonvfx: allow setting NULL constant buffers
Luca Barbieri [Fri, 24 Sep 2010 12:12:24 +0000 (14:12 +0200)]
nvfx: allow setting NULL constant buffers

14 years agor600g: break alu clause earlier
Andre Maasikas [Fri, 24 Sep 2010 10:26:19 +0000 (13:26 +0300)]
r600g: break alu clause earlier

we still have constants to add and next int may need also 6 slots

14 years agod3d1x: fix linking of dxbc2tgsi
Luca Barbieri [Fri, 24 Sep 2010 07:49:51 +0000 (09:49 +0200)]
d3d1x: fix linking of dxbc2tgsi

14 years agod3d1x: draw to the correct buffer
Luca Barbieri [Fri, 24 Sep 2010 07:12:33 +0000 (09:12 +0200)]
d3d1x: draw to the correct buffer

14 years agod3d1x: fix CheckMultisampleQualityLevels
Luca Barbieri [Thu, 23 Sep 2010 18:24:20 +0000 (20:24 +0200)]
d3d1x: fix CheckMultisampleQualityLevels

14 years agod3d1x: don't assert on unsupported resource types
Luca Barbieri [Thu, 23 Sep 2010 16:24:34 +0000 (18:24 +0200)]
d3d1x: don't assert on unsupported resource types

14 years agod3d1x: add untested support for geometry shader translation
Luca Barbieri [Thu, 23 Sep 2010 16:03:34 +0000 (18:03 +0200)]
d3d1x: add untested support for geometry shader translation

14 years agod3d1x: add shader dumping
Luca Barbieri [Thu, 23 Sep 2010 16:03:06 +0000 (18:03 +0200)]
d3d1x: add shader dumping

14 years agor600g: fix polygon mode
Dave Airlie [Fri, 24 Sep 2010 08:57:33 +0000 (18:57 +1000)]
r600g: fix polygon mode

this fixes glean'pointSprite test.

14 years agor600g: fixup sprite coord enable.
Dave Airlie [Fri, 24 Sep 2010 06:36:16 +0000 (16:36 +1000)]
r600g: fixup sprite coord enable.

this fixes piglit glsl-fs-pointcoord

14 years agor600g: fix typo in r700 alu emit
Dave Airlie [Fri, 24 Sep 2010 06:10:07 +0000 (16:10 +1000)]
r600g: fix typo in r700 alu emit

14 years agor600g: fixup VP->FP output->input routing.
Dave Airlie [Fri, 24 Sep 2010 04:58:15 +0000 (14:58 +1000)]
r600g: fixup VP->FP output->input routing.

We need to map the TGSI semantics to each other using the hw semantic ids.

this fixes glsl-kwin-blur and glsl-routing.

14 years agor600g: fixup tex wrapping.
Dave Airlie [Fri, 24 Sep 2010 03:44:48 +0000 (13:44 +1000)]
r600g: fixup tex wrapping.

the clamp edge/clamp cases were reversed.

14 years agor600g: drop index_offset parameter to index buffer translate.
Dave Airlie [Fri, 24 Sep 2010 02:36:08 +0000 (12:36 +1000)]
r600g: drop index_offset parameter to index buffer translate.

r600 doesn't need this as we always have working index bias

14 years agor600g: fix draw-elements and draw-elements-base-vertex
Dave Airlie [Fri, 24 Sep 2010 02:32:45 +0000 (12:32 +1000)]
r600g: fix draw-elements and draw-elements-base-vertex

14 years agor600g: some more vertex formats
Dave Airlie [Fri, 24 Sep 2010 00:47:14 +0000 (10:47 +1000)]
r600g: some more vertex formats

14 years agor600g: add some more vertex format support.
Dave Airlie [Thu, 23 Sep 2010 23:50:48 +0000 (09:50 +1000)]
r600g: add some more vertex format support.

adds the sscaled formats, this passes some more of the draw-vertices tests.

14 years agor600g: add vert support for 16/16 and 16/16/16 floats.
Dave Airlie [Thu, 23 Sep 2010 10:45:01 +0000 (20:45 +1000)]
r600g: add vert support for 16/16 and 16/16/16 floats.

makes draw-vertices-half-float pass

14 years agoBuild r300g by default
Marek Olšák [Thu, 23 Sep 2010 19:50:43 +0000 (21:50 +0200)]
Build r300g by default

NOTE: This will go to 7.9 as well.

14 years agor300g: fix the border color for every format other than PIPE_FORMAT_B8G8R8A8
Marek Olšák [Thu, 23 Sep 2010 20:56:50 +0000 (22:56 +0200)]
r300g: fix the border color for every format other than PIPE_FORMAT_B8G8R8A8

TX_BORDER_COLOR should be formatted according to the texture format.
Also the interaction with ARB_texture_swizzle should be fixed too.

NOTE: This is a candidate for the 7.9 branch.

14 years agor300g: fix a copy-paste typo for logging
Marek Olšák [Thu, 23 Sep 2010 20:53:10 +0000 (22:53 +0200)]
r300g: fix a copy-paste typo for logging

14 years agor300g: make accessing map_list and buffer_handles thread-safe
Marek Olšák [Thu, 23 Sep 2010 12:24:52 +0000 (14:24 +0200)]
r300g: make accessing map_list and buffer_handles thread-safe

NOTE: This is a candidate for the 7.9 branch.

14 years agor300g: fixup long-lived BO maps being incorrectly unmapped when flushing
Marek Olšák [Thu, 23 Sep 2010 11:59:42 +0000 (13:59 +0200)]
r300g: fixup long-lived BO maps being incorrectly unmapped when flushing

Based on commit 3ddc714b20ac4e28b80c6f88d1993445fff2262c by Dave Airlie.

NOTE: This is a candidate for the 7.9 branch.

14 years agoutil: make calling remove_from_list multiple times in a row safe
Marek Olšák [Thu, 23 Sep 2010 18:39:27 +0000 (20:39 +0200)]
util: make calling remove_from_list multiple times in a row safe

This commit fixes an infinite loop in foreach_s if remove_from_list is used
more than once on the same item with other list operations in between.

NOTE: This is a candidate for the 7.9 branch because the commit
"r300g: fixup long-lived BO maps being incorrectly unmapped when flushing"
depends on it.

14 years agoi915: Remove a dead if (0) block.
Eric Anholt [Thu, 23 Sep 2010 23:34:10 +0000 (16:34 -0700)]
i915: Remove a dead if (0) block.

14 years agointel: Remove dead intelIsTextureResident().
Eric Anholt [Thu, 23 Sep 2010 23:30:58 +0000 (16:30 -0700)]
intel: Remove dead intelIsTextureResident().

It always returned 1 (GL_TRUE), which is the same thing that happens when
the driver hook isn't present.

14 years agounichrome: Mostly revert my convolution removal changes.
Eric Anholt [Thu, 23 Sep 2010 23:19:18 +0000 (16:19 -0700)]
unichrome: Mostly revert my convolution removal changes.

For this driver, the minimum pitch alignment stuff does appear to be
necessary, so leave the separate munged width/height variable in
place.

14 years agoradeon: Remove copied minimum pitch alignment code.
Eric Anholt [Thu, 23 Sep 2010 23:13:50 +0000 (16:13 -0700)]
radeon: Remove copied minimum pitch alignment code.

This is already covered by radeon_mipmap_tree.c, and my convolution
cleanups broke in the presence of this code.  Thanks to Marek Olšák
for tracking down the relevant miptree code for me.