Eric Anholt
b2e52e7278
i965: Fix assertion for surface tile offset usage on Ironlake.
...
Fixes assertion failure in fbo-generatemipmap-npot.
2010-04-22 15:37:33 -07:00
Eric Anholt
64516430be
i965: Fix scissoring when width or height is 0.
...
We would run into trouble due to the hardware using inclusive numbers
and the subtraction to handle that producing negative (meaning large
positive) coordinates.
Bug #27643 .
2010-04-22 15:37:33 -07:00
Zack Rusin
021e0dc78b
gallivm: implement indirect addressing over temporaries
...
a bit more involved than indirect addressing over consts, but still
fairly reasonable. we allocate an array instead of individual alloca's,
and we do it only if the shader does indirect addressing.
2010-04-22 18:36:07 -04:00
Zack Rusin
ded2374e67
gallivm: implement indirect addressing over constants
...
implement indirect addressing (ARL and ARR instructions) when used
with CONST's. indirect addressing over other vars (temps, inputs, outputs)
is not supported yet.
2010-04-22 17:33:14 -04:00
Tormod Volden
355370e30b
radeon: 9800 SE has only one quadpipe
...
Although these cards have 2 pipelines on the silicon only
the first passed the QA and the other should be disabled.
http://www.digital-daily.com/video/ati-radeon9800se/
http://www.rojakpot.com/showarticle.aspx?artno=101&pgno=1
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2010-04-22 17:14:15 -04:00
Brian Paul
d888812324
gallium: use better param name
2010-04-22 14:39:12 -06:00
Brian Paul
19b26cb0a2
gallivm: remove Z/stencil special case code in lp_build_sample_offset()
...
Fixes progs/tests/zreaddraw.c and progs/demos/shadowtex.c
2010-04-22 14:37:50 -06:00
Brian Paul
17249ae8e0
st/mesa: assert that binding flags are properly set for drawing surfaces
2010-04-22 14:37:50 -06:00
Brian Paul
e9bcad4c33
st/mesa: fix binding flags in st_ChooseTextureFormat()
...
See comment for more info.
2010-04-22 14:37:50 -06:00
Brian Paul
9f74fa111b
progs/tests: asst. improvements to zreaddraw.c
2010-04-22 14:37:50 -06:00
Jesse Barnes
45e2b51c85
DRI2/GLX: check for vblank_mode in DRI2 GLX code
...
Re-add support for the vblank_mode environment and configuration
variable. Useful for benchmarking and app control.
2010-04-22 12:49:45 -07:00
Jesse Barnes
234286c0f8
DRI2: add config query extension
...
Add a new DRI2 configuration query extension. Allows for DRI2 client
code to query for common DRI2 configuration options.
2010-04-22 12:49:45 -07:00
José Fonseca
c059565054
llvmpipe: Undo zs tiling changes.
...
tile_w/tile_h have different meaning there.
This partialy reverts commit ccdc6b5913 .
2010-04-22 20:38:36 +01:00
José Fonseca
cb384ae8b2
gallium/docs: Unswap PIPE_BIND_SHARED's comment.
2010-04-22 19:51:10 +01:00
Brian Paul
f836a5f60b
gallium/docs: many updates to screen.rst
...
Put PIPE_BIND_ and PIPE_TEXTURE_GEOM_ prefixes on token names so
that they can be found with grep. This needs to be done in more places.
Corrected/improved a lot of information and grammer.
I don't know how to properly format everything - someone else can take
care of that.
2010-04-22 12:47:10 -06:00
José Fonseca
cdaceaafee
llvmpipe: Portability fixes.
2010-04-22 19:25:00 +01:00
José Fonseca
ccdc6b5913
llvmpipe: Fix rendering to non 32bpp formats.
...
Tiled layout always used 32bpp, therefore linear/tiled strides are not
related.
2010-04-22 19:25:00 +01:00
Zack Rusin
18a4a83dda
gallivm: update comments
2010-04-22 13:57:18 -04:00
Zack Rusin
6d2e09fdc2
gallivm: fix nested cont statements
2010-04-22 13:57:18 -04:00
Zack Rusin
3a423dcf9d
gallivm: fix nested break statemants
2010-04-22 13:57:18 -04:00
Zack Rusin
63aa9b505a
gallivm: make sure we return the correct type when approximating log's
2010-04-22 13:57:18 -04:00
José Fonseca
8bee4c7718
llvmpipe: Use resource_is_texture() consistently.
...
Otherwise slightly difference order causes assertion failures.
Also remove mentions of PIPE_BIND_SCANOUT/PIPE_BIND_SHARED. They are not
propoer bind flags and will likely be deprecated. If surfaces should
be passed to the winsys then they should have the DISPLAY_TARGET flag
set, which is a proper bind flag.
2010-04-22 18:42:03 +01:00
Brian Paul
50d77c79fb
gallium: fix comment language, remove dangling comment
2010-04-22 11:33:26 -06:00
Brian Paul
1143221cfd
st/mesa: consolidate code for finding supported formats
2010-04-22 11:11:26 -06:00
Brian Paul
e65b11525a
st/mesa: refactor depth/stencil format selection code
2010-04-22 11:11:26 -06:00
Brian Paul
446062b834
mesa: sort texel fetch/store table by format index
2010-04-22 11:10:42 -06:00
Brian Paul
b4a191e351
Merge branch '7.8'
...
Conflicts:
src/mesa/state_tracker/st_format.c
2010-04-22 11:10:19 -06:00
Brian Paul
b1a9c76b57
st/mesa: add cases for MESA_FORMAT_Z24_X8, MESA_FORMAT_X8_Z24
2010-04-22 11:06:19 -06:00
Brian Paul
4d7ef6e06b
mesa: fix conversion errors in signed_rgba8888[rev] texel fetch
...
Without the cast the returned texel colors were wrong.
Also, we don't need the "& 0xff" part anymore.
Bug found by Vinson Lee.
2010-04-22 11:06:19 -06:00
José Fonseca
2eea1714fd
llvmpipe: Fix resource_is_texture.
...
It was missing PIPE_BIND_RENDER_TARGET, causing assertion failures for
pure render targets.
Also bind flags are too variable and complex for a good assessment for
whether the resource is a texture or not. Target is more concise.
2010-04-22 18:06:05 +01:00
José Fonseca
510669cd87
llvmpipe: Do not advertise S3TC rendering support.
2010-04-22 15:12:30 +01:00
José Fonseca
6ae9975ea0
llvmpipe: Fix typo in assert.
2010-04-22 15:11:57 +01:00
José Fonseca
52bc90caa8
u_format: Reduce code duplication.
2010-04-22 15:11:34 +01:00
Alex Deucher
986eb4b99f
r300: fix vertex unit setup
...
RV3xx is 2, RV560,RV570 is 8
Noticed by Tormod Volden.
2010-04-22 02:33:10 -04:00
Aaron Plattner
2e995cdf25
progs/demos: Fix the progs/demos/rain help text
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-21 18:13:19 -06:00
Zack Rusin
7dfde3aadc
draw llvm: make sure use_llvm isn't used when not defined
2010-04-19 13:33:49 -04:00
Zack Rusin
e3e5faba89
draw llvm: fix typo (boolean, not bool)
2010-04-19 13:30:36 -04:00
Brian Paul
05bf77a2da
llvmpipe: fix surface memory allocation bug
...
We weren't always allocating the right amount of memory for image tiles
for some formats (those < 32bpp).
Fixes fd.o bug 27712.
2010-04-19 11:18:51 -06:00
Jesse Barnes
64644ec3b2
Merge branch '7.8'
2010-04-19 09:56:49 -07:00
Jesse Barnes
385e2896eb
DRI2: synchronize swap interval with server at startup time
...
In the direct rendered case, we need to tell the server our initial swap
interval. If we don't, the local and server values will be out of sync,
since the server and client defaults may be different (as they were
before this patch).
2010-04-19 09:56:32 -07:00
Zack Rusin
4df3e76949
draw llvm: allow runtime switching of pipelines (yes/no to llvm)
...
use DRAW_USE_LLVM to disable or enable (default) llvm
2010-04-19 12:53:27 -04:00
Zack Rusin
7c4208c3a0
draw llvm: fix constructor mess
...
use just one constructor to figure out whether to use llvm.
2010-04-19 12:53:27 -04:00
Zack Rusin
deee152363
llvmpipe: enable draw llvm by default
2010-04-19 12:53:27 -04:00
Brian Paul
653c681ce8
gallium/util: specify binding type for blit src texture
...
Fixes fd.o bug 27711.
2010-04-19 10:32:25 -06:00
Brian Paul
96b0807253
mesa: unmap the immediate mode VB before destroying it
...
Fixes failed assertion from fd.o bug 27713.
The assertion was added with the new resource/transfer changes.
This patch could apply to the 7.8 branch but it's not essential.
2010-04-19 10:27:57 -06:00
José Fonseca
dfadf5a579
r300g: Adapt for index bias interface change.
2010-04-19 18:18:45 +02:00
José Fonseca
7c785c0d2c
nvfx: Adapt for index bias interface change.
2010-04-19 18:18:28 +02:00
José Fonseca
f6f7324bbf
nv50: Adapt for index bias interface change.
2010-04-19 18:17:45 +02:00
José Fonseca
583f51ba4b
retrace: Support index bias.
2010-04-19 18:17:11 +02:00
José Fonseca
17a43c1718
mesa/st: Update for index bias interface change.
2010-04-19 18:16:57 +02:00