Eric Anholt
d492e7b017
meta: Fix invalid PBO access from DrawPixels when trying to just alloc.
...
This whole reuse of buffers (TexSubImage instead of TexImage, SubData
instead of Data) is bad for hardware drivers, but it's even worse when
we accidentally try to access the 2x2 PBO to fill the new 16x16 texture
we're creating, producing GL errors.
Fixes piglit pbo-drawpixels. Bug #14163 .
2009-09-28 14:12:15 -07:00
Eric Anholt
e885cb48a0
intel: Drop my generatemipmap code in favor of the new shared code.
2009-09-28 14:12:15 -07:00
Eric Anholt
8b23755ce9
intel: Remove some dead metaops code.
2009-09-28 14:12:09 -07:00
Ian Romanick
f0dc378705
Prep for 7.6 release
2009-09-28 11:22:54 -07:00
Brian Paul
05bad193f5
st/mesa: check gl_texture_object::GenerateMipmap field when allocating texmem
...
In guess_and_alloc_texture() use the gl_texture_object::GenerateMipmap
field as another hint as to whether to allocate space for a whole mipmap.
2009-09-28 10:03:58 -06:00
Brian Paul
8fda97afb8
Merge branch 'mesa_7_6_branch'
2009-09-28 10:02:20 -06:00
Brian Paul
eeb7e04da6
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
2009-09-28 09:59:59 -06:00
Robert Noland
d09941c8cc
Fix build on non GLIBC platforms (FreeBSD at least)
...
Build was broken by commit 9666529b5a
I'm not certain that this is entirely the correct fix since the demo
from bug #23774 seemed to work before the commit that broke the build.
Signed-off-by: Robert Noland <rnoland@2hip.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-09-28 09:48:45 -06:00
Brian Paul
c7fddaf612
st/mesa: fix st_generate_mipmap() issues
...
The main issue is we didn't always have a gallium texture object with
enough space to store the to-be-generated mipmap levels. When that's
the case, allocate a new gallium texture and use st_texure_finalize()
to copy images from the old texture to the new one.
We also had the baseLevel parameter to st_render_mipmap() wrong.
2009-09-28 09:37:16 -06:00
Brian Paul
e3a6f57ad6
st/mesa: fix/simplify st_texture_object::lastLevel calculation
...
Don't compute the st_texture_object::lastLevel field based on the texture
filters. Use the _MaxLevel value that core Mesa computes for us.
When called from the GenerateMipmap path, we'll use the lastLevel field
as-is.
2009-09-28 09:35:08 -06:00
Brian Paul
41d0606b7f
gallium/util: add sanity check assertions
2009-09-28 09:35:04 -06:00
Brian Paul
eb82373abb
mesa: use _mesa_get_current_tex_unit() helper
2009-09-28 09:22:33 -06:00
Younes Manton
9871521b30
llvmpipe: Grab a ref when the fb is set.
...
Based on softpipe commit a77226071f .
2009-09-28 15:35:29 +01:00
José Fonseca
5687053480
softpipe: Fix MSVC build.
2009-09-28 13:03:03 +01:00
José Fonseca
22658c1650
g3dvl: Fix MSVC build.
...
pipe/p_compiler for integer types. No declarations out of scope.
2009-09-28 13:02:42 +01:00
Cooper Yuan
99e1745af9
r300g: fix r300g cause GPU hang issue.
...
why there are two input position semantic tags is that ureg doesn't
set vs input semantic due to commit: 6d8dbd3d1e
so use vs input index instead of semantic name.
2009-09-28 17:55:38 +08:00
Younes Manton
70c44073ad
xvmc: Fail on unsupported formats, operations.
2009-09-28 00:17:33 -04:00
Younes Manton
c0745670d8
g3dvl: Missing semicolon.
2009-09-27 23:54:36 -04:00
Brian Paul
729ff875f4
mesa: change _mesa_format_to_type_and_comps() format parameter type
2009-09-27 21:32:12 -06:00
Brian Paul
bd00a7fa4b
mesa: sort texstore_funcs[] array, remove search loop
2009-09-27 21:22:57 -06:00
Younes Manton
d52d51ab8a
g3dvl: Formatting and cleanups.
2009-09-27 23:14:52 -04:00
Brian Paul
749e50442a
mesa: fix render buffer _BaseFormat assignment
2009-09-27 21:14:43 -06:00
Brian Paul
ef089604a9
mesa: use texture format functions
2009-09-27 21:14:12 -06:00
Brian Paul
4fc344790d
mesa: update comments
2009-09-27 21:13:46 -06:00
Brian Paul
e987ea9d21
mesa: use more mesa format functions
2009-09-27 21:07:57 -06:00
Brian Paul
5767a677a0
mesa: fix GL_TEXTURE_LUMINANCE_SIZE query
2009-09-27 20:59:28 -06:00
Brian Paul
a2b663fe38
mesa: use more mesa format functions
2009-09-27 20:58:05 -06:00
Brian Paul
af0adb5852
mesa: use more mesa format functions
2009-09-27 20:56:04 -06:00
Brian Paul
5cf5d4be21
mesa: use more format helper functions
2009-09-27 20:51:18 -06:00
Brian Paul
5978cbdf77
mesa: code movement
2009-09-27 20:40:53 -06:00
Brian Paul
ddffe4546a
drivers: use more mesa format functions
2009-09-27 20:40:35 -06:00
Brian Paul
9fbb8884f0
mesa/drivers: use _mesa_get_format_bytes()
2009-09-27 20:24:59 -06:00
Brian Paul
e0bc4533eb
mesa/drivers: use _mesa_get_format_bytes()
2009-09-27 20:07:41 -06:00
Brian Paul
b58bc12ed4
via: use mesa texture format helper functions
2009-09-27 19:58:18 -06:00
Younes Manton
97c28bb63a
g3dvl: Move XvMC under the Xorg state tracker.
2009-09-27 21:54:20 -04:00
Brian Paul
21db8959c1
glide: use _mesa_get_format_bytes()
2009-09-27 19:53:54 -06:00
Brian Paul
2de7683280
mesa: use _mesa_get_format_base_format()
2009-09-27 19:51:45 -06:00
Brian Paul
db8aca3a39
mesa: use _mesa_get_format_bytes()
2009-09-27 19:49:51 -06:00
Brian Paul
5ab5f16919
mesa: added _mesa_get_format_datatype()
2009-09-27 19:42:36 -06:00
Brian Paul
b64d478a5b
mesa: use _mesa_get_format_bits()
2009-09-27 19:38:21 -06:00
Brian Paul
c28d78f832
mesa: added _mesa_get_format_bits()
2009-09-27 19:07:44 -06:00
Brian Paul
a608257a02
mesa: remove unused gl_texture_format fields
2009-09-27 18:57:02 -06:00
Brian Paul
e8eed5003b
mesa: added MESA_FORMAT_NONE
2009-09-27 18:53:22 -06:00
Brian Paul
cccdc43fa9
mesa: move StoreTexImageFunc to texstore.h
2009-09-27 18:50:04 -06:00
Brian Paul
27e201e9c4
mesa: rework null texel fetch/store funcs
2009-09-27 18:49:14 -06:00
Brian Paul
05e73cc8e2
mesa: replace function pointer types with void *
...
These fields are no longer used and will be removed soon.
2009-09-27 18:39:52 -06:00
Brian Paul
adce34e23b
st/mesa: use _mesa_get_texstore_func()
2009-09-27 18:39:17 -06:00
Brian Paul
f782f90c45
mesa: use _mesa_get_texstore_func()
2009-09-27 18:38:50 -06:00
Brian Paul
d73cd70316
glide: use _mesa_get_texstore_func()
2009-09-27 18:34:12 -06:00
Brian Paul
9525b92efb
mesa: NULL-out unused texformat field initializers
2009-09-27 18:28:48 -06:00