Ian Romanick
b4a6169412
intel: Make RGB textures use XRGB8888
2009-12-10 15:12:30 -08:00
Ian Romanick
cbdeb33209
intel: Make RGB renderbuffers use XRGB8888 like we do for RGB system buffers.
2009-12-10 15:12:30 -08:00
Ian Romanick
eadd9b8e16
i965: Fix handling of drawing to MESA_FORMAT_XRGB8888
...
It turns out that 965 and friends cannot actually render to an xRGB
surfaces. Instead, the surface has to be RGBA with writes to alpha
disabled and the blend function modified to always use 1.0 for
destination alpha.
2009-12-10 15:12:30 -08:00
Ian Romanick
4f2b2032f4
intel: Use spantmp2 GL_BGR / GL_UNSIGNED_INT_8_8_8_8_REV for XRGB8888
2009-12-10 15:12:30 -08:00
Ian Romanick
ffc1f299e9
spantmp2: Add support for GL_BGR / GL_UNSIGNED_INT_8_8_8_8_REV
...
This is really for MESA_FORMAT_XRGB8888. Clearly spantmp2.h needs some
re-work. Any volunteers?
2009-12-10 15:12:30 -08:00
Ian Romanick
430876cd3a
intel: name in intel_create_renderbuffer was always 0, remove
2009-12-10 15:12:30 -08:00
Ian Romanick
0f01674a58
intel: Use texformat accessor to get bytes-per-pixel
2009-12-10 15:12:30 -08:00
Ian Romanick
4eee46efcb
intel: softwareBuffer in intel_alloc_renderbuffer_storage was always false, remove
2009-12-10 15:12:30 -08:00
Ian Romanick
3078bd136d
intel: Axe intel_renderbuffer::texformat
...
Since the texformat branch merge, the value of intel_renderbuffer::texformat
is just a copy of gl_renderbuffer::Format.
2009-12-10 15:12:30 -08:00
Eric Anholt
539a14a1dd
intel: Flush the render/texture cache when finishing render to texture.
...
Back when we were flushing the entire batch at BindFramebuffer, the kernel
would notice the domain transition when someone went to texture from it and
flush for us. We no longer do the batch flushing every time, so we get to
do aggressive flushing until we move batchbuffer handling to libdrm.
Fixes piglit fbo-flushing. Bug #25377 . No noticeable performance loss
on cairo-gl (so this is better than batch flushing).
2009-12-10 14:47:09 -08:00
Vinson Lee
bc0509bba8
progs/util: Byte swap individual members of struct _rawImageRec.
2009-12-10 13:24:15 -08:00
Vinson Lee
51f52edaf1
glsl: Fix array out-of-bounds access by _slang_lookup_constant.
2009-12-10 12:37:10 -08:00
Vinson Lee
dcb4a37fc8
mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.
2009-12-10 12:11:09 -08:00
Eric Anholt
cb640c8d40
mesa: Fix default (swrast) GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS.
...
The swrast pipeline shouldn't have any problem with all the frag and vert
textures being bound at the same time. Note that this may result in
DRI drivers that don't set this limit having an improbable return
(fragment + vertex < combined), but it seems like it shouldn't cause
problems for apps.
2009-12-10 10:05:31 -08:00
Zack Rusin
967e6e2009
st/xorg: fix yv12 plus some cleanups in the upload code
2009-12-10 13:04:26 -05:00
Zack Rusin
690d888416
st/xorg: enable yv12 for xv
2009-12-10 13:04:05 -05:00
Eric Anholt
51e945ec9c
intel: Attempt to fix up after "Update vertex texture code."
...
The MaxCombinedTextureImageUnits is the total number of samplers that can
be bound between vertex, geometry, and fragment, not 0. This should report
the correct value on 965 now. Other DRI drivers may also need updating if
their MaxVertexTextureImageUnits != 0 (for example, if using the sw vertex
pipeline).
It's not clear to me if there's going to be a valid value for this
limit other than MaxTextureImageUnits + MaxVertexTextureImageUnits (+
MaxGeometryTextureImageUnits eventually). If not, then we should probably
just move this into the core at Get time.
Bug #25518 (wine regression). Fixes piglit vp-combined-image-units.
2009-12-10 09:56:52 -08:00
José Fonseca
491f384c39
scons: Get GLSL code building correctly when cross compiling.
...
This is quite messy. GLSL code has to be built twice: one for the
host OS, another for the target OS.
2009-12-10 16:30:08 +00:00
Brian Paul
289eab5389
glsl/sl: fix _parse_boolconstant()
...
Need to emit the radix before the digits.
This fixes several glean/glgl1 regressions.
2009-12-10 09:16:39 -07:00
Brian Paul
cc020425e9
mesa: added new libglslpp.a and libglslcl.a to libGL build
2009-12-10 08:33:01 -07:00
Brian Paul
05eccfe79e
glsl/apps: remove unused vars
2009-12-10 08:25:47 -07:00
Brian Paul
0d654a7f2c
glsl/pp: make some functions static
2009-12-10 08:25:35 -07:00
Brian Paul
52271c5345
glsl/pp: declare sl_pp_purify_options to silence warning
2009-12-10 08:25:16 -07:00
Brian Paul
7502b6affa
glsl/cl: silence unused var warning
2009-12-10 08:24:45 -07:00
Michal Krol
f00805a117
slang: Predefine ES symbols for FEATURE_es2_glsl.
2009-12-10 12:59:23 +01:00
Michal Krol
417f36ccb0
glsl/apps: Predefine __GLSL_PP_PREDEFINED_MACRO_TEST for testing.
2009-12-10 12:58:44 +01:00
Michal Krol
22200bcafc
glsl/pp: Add support for user-defined macros.
2009-12-10 12:58:21 +01:00
Michal Krol
d1a09a9ba4
glsl/apps: Explicitly add ARB_draw_buffers and ARB_texture_rectangle.
2009-12-10 12:39:37 +01:00
Michal Krol
48c60b0ecb
slang: Explicitly enable ARB_draw_buffers and ARB_texture_rectangle.
...
They are no longer built into the glsl preprocessor.
2009-12-10 12:39:10 +01:00
Michal Krol
91e164b3d0
glsl/pp: Add sl_pp_context_add_extension().
...
This way third parties are able to add supported extension strings.
2009-12-10 12:38:22 +01:00
Vinson Lee
05b6296092
mesa: Fix SCons build.
...
Commit cd6b8dd9e8 deleted
src/mesa/state_tracker/st_cb_get.c.
2009-12-09 22:35:32 -08:00
Roland Scheidegger
71f4267ac2
winsys/intel: fix dereferencing of opaque type due to pipe_reference changes
2009-12-10 03:51:35 +01:00
Vinson Lee
b827578805
mesa: Fix array out-of-bounds access by _mesa_TexGend.
...
_mesa_TexGend calls _mesa_TexGenfv, which uses the params argument
as an array.
2009-12-09 17:59:23 -08:00
Vinson Lee
444d1f3910
mesa: Fix array out-of-bounds access by _mesa_Lighti.
...
_mesa_Lighti calls _mesa_Lightiv, which uses the params argument
as an array.
2009-12-09 17:34:50 -08:00
Vinson Lee
34528a34c4
mesa: Fix array out-of-bounds access by _mesa_Lightf.
2009-12-09 17:11:30 -08:00
michal
068596c9a7
Build mesa glsl with make.
...
Still don't know how to add glsl to mesa dependencies.
2009-12-10 01:03:15 +01:00
Marek Olšák
c6b450033d
r300g: fix routing of vertex streams if TCL is bypassed
...
Generating mipmaps finally works, among other things. Yay!
2009-12-09 13:38:11 -08:00
Marek Olšák
6de7ac73bf
r300g: always disable unused colorbuffers
2009-12-09 13:38:11 -08:00
Marek Olšák
87b822e024
r300g: make pow(0,0) return 1 instead of NaN in the R500 fragment shader
...
Unfortunately we can't fix this easily in the R300 fragment shader,
and it's probably not worth the effort.
2009-12-09 13:38:11 -08:00
Marek Olšák
8cc570a48c
r300g: clean up r300_emit_aos
2009-12-09 13:38:11 -08:00
Vinson Lee
348883076b
mesa: Fix array out-of-bounds access by _mesa_PointParameteri.
...
_mesa_PointParameteri calls _mesa_PointParameterfv, which uses the
params argument as an array.
2009-12-09 13:15:05 -08:00
Vinson Lee
6f2d51b81f
mesa: Fix array out-of-bounds access by _mesa_PointParameterf.
...
_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the
params argument as an array.
2009-12-09 13:00:22 -08:00
Vinson Lee
637970aefd
mesa: Fix array out-of-bounds access by _mesa_LightModelf.
...
_mesa_LightModelf calls _mesa_LightModelfv, which uses the
params argument as an array.
2009-12-09 12:43:28 -08:00
Richard Li
8927b72118
r600 : add pre-compile mesa shader calling interface, in order to handle
...
complex built-in shader instructions.
2009-12-09 15:39:16 -05:00
Vinson Lee
a082d965de
glsl: Remove unused member x from struct slang_operation.
2009-12-09 11:26:24 -08:00
Brian Paul
3de8fff45d
mesa: fix baseLevel >= MAX_TEXTURE_LEVELS test
...
This fixes invalid array indexing when baseLevel == MAX_TEXTURE_LEVELS.
See bug 25528.
2009-12-09 08:30:05 -07:00
Michal Krol
dfdf83d714
Revert "Simplify the redundant meaning of format layout."
...
This reverts commit eb926ddf9e .
2009-12-09 14:22:30 +01:00
José Fonseca
59f6af51b8
util: Document the meaning of util_format_layout.
...
The util_format_layout name was unfortunate and there
are as been a lot of confusion due to this. Hopefully
this will shed some light on what it was meant for.
Bottom line is: do not rely on these values unless
you're automatically code generating pixel
packing/unpacking routines.
Suggestions for better names than util_format_layout
are welcome!
2009-12-09 11:00:26 +00:00
Andre Maasikas
33a120e476
r600: fix state size prediction after dc0777d3
2009-12-09 10:51:52 +02:00
Jakob Bornecrantz
5e2a86cb1b
vmware/xorg: Properly detect overlay support
2009-12-09 09:51:05 +01:00