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
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
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
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
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
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
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
Ian Romanick
bb64c9bcdf
Revert "intel: Make RGB renderbuffers use XRGB8888 like we do for RGB system buffers."
...
This reverts commit 4598942b1b
.
XRGB8888 doesn't work as intended. Revert this for now, and we'll revisit it
for 7.8 or something.
2009-12-07 17:06:07 -08:00
Ian Romanick
9dbd47fc6b
mesa: set version string to 7.6.1-rc3
2009-12-07 16:59:59 -08:00
Maciej Cencora
9921b3048e
radeon: fix cases when only first image where put directly into miptree.
...
Make sure that minimal width, height and depth of texture image is 1.
2009-12-07 22:33:11 +01:00
Maciej Cencora
013cf1d63d
radeon: fix image migration for small compressed textures
...
memcpy would give incorrect results if src rowstride != dst rowstride
2009-12-07 22:29:11 +01:00
Roland Scheidegger
72362a5cd4
mesa: fix shader prog_execute strict aliasing violations
...
use unions instead of pointer casts.
2009-12-07 21:47:49 +01:00
Vinson Lee
7d84169865
progs/demos: Fix memory leak in projtex.c.
2009-12-07 12:31:08 -08:00
Roland Scheidegger
3456f9149b
gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safe
...
use pointer to union instead of void pointer.
gcc complained a lot, depending what the pointer originally actually was.
Looks like it's in fact maybe legal to cast for instance uint pointers to
union pointers as long as union contains a uint type, hence use this with some
callers, other just use union util_color in the first place.
2009-12-07 20:35:42 +01:00
Roland Scheidegger
c36d1aacf4
mesa: fix strict aliasing issues in half-to-float/float-to-half conversions
...
use union instead of casts
2009-12-07 20:11:46 +01:00
Michal Krol
ac66598ed8
util/tile: Support R8G8B8A8_UNORM format.
2009-12-07 18:21:37 +01:00
Brian Paul
c90baf444c
st/mesa: remove debug code
2009-12-07 09:05:40 -07:00
Brian Paul
0311d9ccf4
progs/glsl: updates to deriv.c test
...
Pass window size into the shader so scaling the window doesn't effect
the colors.
2009-12-07 09:03:41 -07:00
Brian Paul
8ce1713443
st/mesa: negate DDY to match GL semantics
...
This fixes the regression from commit 884007546c
Fixes bug 25456 (piglit derivs regression).
2009-12-07 09:00:59 -07:00
Brian Paul
8468234bfa
st/mesa: fix up comment
2009-12-07 08:59:38 -07:00
Brian Paul
8796dbf519
progs/glsl: added texture mapping to bump demo
...
Press 't' to toggle texture map.
2009-12-07 07:46:02 -07:00
Corbin Simpson
12981589b7
radeong: Automatically softpipe for non-r3xx.
...
Well, technically non-r[345]xx. At any rate...
$ glxgears
libGL: OpenDriver: trying /home/simpson/mesa/lib/gallium/r600_dri.so
131 frames in 5.0 seconds = 26.107 FPS
I'm sure you can see where this is going. :3
2009-12-06 23:55:58 -08:00