Jakob Bornecrantz
b7cf8a1f93
vmware/core: Update vmwgfx_drm.h
2009-12-09 09:51:04 +01:00
Ian Romanick
e3fa700c17
meta: Bind texture to unit 0 for mipmap generation
...
If the active texture unit on entry to mipmap generation is not zero, bind the
texture to unit zero.
Fixes bug #24219 .
2009-12-09 11:05:15 -08:00
Eric Anholt
cd6b8dd9e8
mesa: Move OES_read_format support from drivers into the core.
...
The assertion is that the correct read type to be using is the native
type of the underlying read renderbuffer. For some fallback paths, this
may be worse than GL_RGBA/GL_UNSIGNED_BYTE for reads today, but it gets
all drivers the expected GL_BGRA/GL_UNSIGNED_BYTE for ARGB8888 or
GL_BGR//GL_UNSIGNED_SHORT_5_6_5_REV for rgb565 with no work.
This fixes the intel (and other) DRI drivers to report read formats that
should hit blit PBO readpixels paths.
2009-12-09 10:37:36 -08:00
Vinson Lee
af16c822a5
mesa: Fix array out-of-bounds access by _mesa_LightModeli.
...
_mesa_LightModeli calls _mesa_LightModeliv, which uses the
params argument as an array.
2009-12-08 18:26:05 -08:00
Vinson Lee
d33bf38d63
mesa: Fix array out-of-bounds access by _mesa_Fogf.
...
_mesa_Fogf calls _mesa_Fogfv, which uses the params argument
as an array.
2009-12-08 17:51:07 -08:00
Vinson Lee
3f7c2ac279
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
...
_mesa_TexParameteri calls set_tex_parameteri, which uses the
params argument as an array.
2009-12-08 17:25:05 -08:00
Eric Anholt
dd9eb8774a
i965: Enable the accelerated ReadPixels path on gen4 along with pre-gen4.
...
Passes piglit pbo-read-argb8888, and doesn't otherwise regress quick.tests.
2009-12-08 16:35:05 -08:00
Vinson Lee
7f146b3824
mesa: Fix array out-of-bounds access by _mesa_Fogi.
...
_mesa_Fogi calls _mesa_Fogfv, which uses the params argument
as an array.
2009-12-08 16:08:41 -08:00
Vinson Lee
a1d46fbea0
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
...
_mesa_TexParameteri calls set_tex_parameterf, which uses the
params argument as an array.
2009-12-08 15:42:13 -08:00
Vinson Lee
d88f3b9468
mesa: Fix array out-of-bounds access by _mesa_TexParameterfv.
...
_mesa_TexParameterfv calls set_tex_parameteri, which uses the
params argument as an array.
2009-12-08 14:33:33 -08:00
Brian Paul
54b0ed8360
vbo: fix array index out of bounds error, and fix evaluator priorities
...
Fixes bug 25525.
Plus, the GL_NV_vertex_program evaluators alias and override the
convential evaluator maps, so set their state after the conventional
maps.
2009-12-08 15:03:22 -07:00
Michal Krol
eb926ddf9e
Simplify the redundant meaning of format layout.
...
We really just need to know whether the format is compressed or not.
For more detailed information format colorspace should suffice.
2009-12-08 20:48:47 +01:00
Roland Scheidegger
47c780180b
nouveau: use boolean instead of bool
2009-12-08 19:58:46 +01:00
Roland Scheidegger
849a0644ad
cell: use boolean instead of bool
2009-12-08 19:58:36 +01:00
Roland Scheidegger
fd7a9ec7f9
gallium: use boolean instead of bool in p_refcnt.h
...
all code in gallium should use boolean not bool
2009-12-08 19:58:28 +01:00
Michal Krol
876a785a18
Format layout cannot be used to distinguish scaled/normalised formats.
2009-12-08 19:58:13 +01:00
Roland Scheidegger
4ebc54795d
Merge branch 'gallium-strict-aliasing'
2009-12-08 19:26:20 +01:00
Roland Scheidegger
ee1720b99d
gallium: fix more potential strict aliasing issues
...
In particular, gcc man page warns that
union a_union {
int i;
double d;
};
int f() {
double d = 3.0;
return ((union a_union *) &d)->i;
}
"might" not be ok (why not?), even though it doesn't seem to generate
any warnings. Hence don't use this and do the extra step to actually use
assignment to get the values in/out of the union.
This changes parts of 3456f9149b .
2009-12-08 19:17:08 +01:00
Brian Paul
bc7567d966
tgsi: fix some off-by-one errors in shader length, instruction length
...
The ureg and/or tgsi-simplification work introduced some inconsistencies
between the ureg and traditional TGSI construction code.
Now the tgsi_instruction::NrTokens field is consistant and the
tgsi_header::BodySize field isn't off by one.
Fixes bug 25455.
2009-12-08 08:14:14 -07:00
Michal Krol
ddbd2d08b7
util/format: Take advantage of sequential nature of pipe_format enum.
...
Make sure the format descriptor table can be indexed directly.
2009-12-08 15:46:15 +01:00
Michal Krol
714e1880d9
gallium: Make pipe_format a sequential enum.
2009-12-08 15:35:54 +01:00
Michal Krol
ceb3cf5519
util/format: Remove unreferenced local.
2009-12-08 15:31:07 +01:00
Michal Krol
6fd8b9b550
Remove remaining pipe format utility functions.
...
Depricate pf_type(), pf_size_*(), pf_layout() and pf_exp2().
Map depricated PIPE_FORMAT_TYPE to new UTIL_FORMAT_ values:
UNKNOWN = TYPE_VOID
UNORM = TYPE_UNSIGNED + LAYOUT_ARITH
SNORM = TYPE_SIGNED + LAYOUT_ARITH
FIXED = TYPE_FIXED
FLOAT = TYPE_FLOAT
USCALED = TYPE_UNSIGNED + LAYOUT_ARRAY
SSCALED = TYPE_SIGNED + LAYOUT_ARRAY
SRGB = TYPE_COLORSPACE_SRGB
2009-12-08 15:30:10 +01:00
Andre Maasikas
629a648b05
r600: and finally fix SCS
2009-12-08 15:45:26 +02:00
Andre Maasikas
0f854105f5
r600: remove (now) dead code
2009-12-08 15:44:42 +02:00
Andre Maasikas
fbe06a9c29
r600: fix SIN also
2009-12-08 15:44:34 +02:00
Andre Maasikas
2b8b16f6a6
r600: use the new inline constants feature to fix COS
2009-12-08 15:44:23 +02:00
Andre Maasikas
4e86cedf5b
r600: add assembler support for literal(inline) constants
...
and use it in cubemap instruction sequence for testing
2009-12-08 15:43:12 +02:00
Andre Maasikas
602ba357ed
r600: merge alu_instruction/alu_instruction2
2009-12-08 15:39:57 +02:00
Andre Maasikas
17e212e263
r600: add ABS support for source regs to assembler
...
use it in tex cube instruction sequence
2009-12-08 15:39:45 +02:00
Andre Maasikas
50ab51101e
r600: glsl - allow specifying texture sampler via uniforms
...
looks kinda hackish, should rethink later
2009-12-08 15:39:39 +02:00
Andre Maasikas
94723b60cf
r600: implement FRAG_ATTRIB_FACE, glsl/twoside works
2009-12-08 15:39:29 +02:00
Andre Maasikas
323d1fb391
r600: quick hack to get KIL_NV working - does condition TR only for now
2009-12-08 15:39:20 +02:00
Andre Maasikas
c1d79a4235
r600: wip glsl - refactor conditional instructions a bit
...
remember the dst register which is used for cond updates
when it's time to use the cond codes issue a separate PRED instruction
2009-12-08 15:39:08 +02:00
Andre Maasikas
94c6ec5809
r600: execute SET funtions on all channels
...
seems assemble_LOGIC was meant for non-condition-code instructions
so execute in for all components as previously
2009-12-08 15:38:59 +02:00
Alan Hourihane
2aebc5e01f
move assert to avoid crash in debug build.
2009-12-08 13:12:02 +00:00
Michel Dänzer
eaa3a025da
Merge branch 'mesa_7_7_branch'
2009-12-08 12:25:34 +01:00
Michel Dänzer
32ccc9b0bb
vmware/xorg: Fix SCons build.
...
Not sure how vmw_screen.c could build at all though...
2009-12-08 11:45:19 +01:00
Michel Dänzer
9e42683fb3
vmware/xorg: Avoid warning about HAVE_STDINT_H being redefined.
2009-12-08 11:43:22 +01:00
Andre Maasikas
b5e256c76d
Merge branch 'mesa_7_7_branch'
...
Conflicts:
src/mesa/drivers/dri/r600/r700_assembler.c
src/mesa/main/version.h
2009-12-08 11:57:24 +02:00
Vinson Lee
1de1deffce
i915g: Fix memory leak when pci id is unknown.
2009-12-08 00:43:38 -08:00
Vinson Lee
7e93e06781
i915g: Add missing break statement in i915_debug_packet.
2009-12-08 00:37:35 -08:00
Vinson Lee
7f8e22aa29
rbug: Initialize variable in rbug_get_message.
...
Silences uninitialized variable warning.
2009-12-08 00:28:50 -08:00
Andre Maasikas
0d4a05445c
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
2009-12-08 10:16:14 +02:00
Andre Maasikas
369669ff9a
r600: add support for TXB instruction
...
makes testing other things easier - does not hang the card
TODO: enable TEX dependency tracking in vertex programs
2009-12-08 10:02:23 +02:00
Andre Maasikas
dc0777d3e3
r600: reorder state for render_target and blend
...
First time around render targets are not enabled yet (done in
r700SendRenderTargetState) so blend state is not emitted for any targets.
Affects first glClear in some mesa tests.
As a quick fix reorder state emit so that target is set first
2009-12-08 09:41:10 +02:00
Vinson Lee
add6dfbba6
llvmpipe: Initialize variables in emit_instruction.
2009-12-07 19:04:07 -08:00
Vinson Lee
3e8b2fda21
progs/test: Initialize variable in prog_parameter.
...
Silences uninitialized variable compiler warning.
2009-12-07 18:40:37 -08:00
Ian Romanick
ba167f812c
mesa: set version string to 7.7-rc1
...
Also modify the Makefile to use the correct version for the tarballs.
2009-12-07 17:18:56 -08:00
Ian Romanick
8fc433fa0f
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
...
Conflicts:
progs/demos/projtex.c
progs/xdemos/glxinfo.c
src/mesa/main/version.h
To fix the confilicts in projtex.c and glxinfo.c I just took the code from
mesa_7_6_branch. The conflicts seem to have occured from cherry-picks from
mesa_7_7_branch to mesa_7_6_branch followed by commmits just to
mesa_7_6_branch.
2009-12-07 17:16:10 -08:00