Marek Olšák
671f1e1229
r300g: support index bias on r500 and DRM 2.3.0
2010-04-26 07:22:00 +02:00
Marek Olšák
54bcee1e40
r300g: support rendering more than 65535 vertices in one batch on r500
...
and disable batch splitting on these chipsets.
2010-04-26 07:22:00 +02:00
Marek Olšák
2579fe4044
r300g: emit MSPOS regs
2010-04-26 07:22:00 +02:00
Marek Olšák
b9e637e8cf
r300g: force prefetch for non-indexed vertices
2010-04-26 07:22:00 +02:00
Marek Olšák
537d117ed5
r300g: use the dummy FS shader for shaders with zero instructions
2010-04-26 07:22:00 +02:00
Marek Olšák
52e591383b
r300g: allow unaligned vertex formats if the stride is dword-aligned
2010-04-26 07:22:00 +02:00
Marek Olšák
824e2afea0
r300g: abort on unsupported vertex formats
2010-04-26 07:21:59 +02:00
Marek Olšák
d00b2560d5
r300g: abort if a vertex buffer offset is not dword-aligned
2010-04-26 07:21:59 +02:00
Vinson Lee
210218bb96
st/wgl: s/st_manager_create_api/st_gl_api_create/
...
commit 0c572c6828
replaced
st_manager_create_api with st_gl_api_create.
Fixes MSVC build.
2010-04-25 21:42:19 -07:00
Vinson Lee
78b47c337f
nvfx: Add missing header.
2010-04-25 21:22:40 -07:00
Jakob Bornecrantz
1372a8f90d
st/dri: Refactor dri_st_api into other files
2010-04-26 00:40:17 +01:00
Jakob Bornecrantz
27779ddad5
st/dri: Make st_framebuffer_iface the base for dri_drawable
2010-04-26 00:40:17 +01:00
Jakob Bornecrantz
a66b391edf
st/dri: Make st_manager the base for dri_screen
2010-04-26 00:40:17 +01:00
Jakob Bornecrantz
ea6a52a1f8
st/dri: Add hooks for framebuffer functions
2010-04-26 00:40:17 +01:00
Jakob Bornecrantz
ab12d4f647
st/dri: Make lookup_egl_image a hook
2010-04-26 00:40:17 +01:00
Jakob Bornecrantz
0c572c6828
st_api: Remove st_module
...
The struct st_module isn't needed as it is the same thing as the st_api
struct. That is they both represent the API. Instead just use a single
function entry point to the the API.
2010-04-26 00:40:17 +01:00
José Fonseca
81ab19de04
llvmpipe: Respect pipe_sampler_view::swizzle_r/g/b/a
...
This allows u_sampler_view_default_dx9_template to do its magic on DX9.
2010-04-26 00:32:13 +01:00
José Fonseca
4dd1a56840
draw: Respect pipe_vertex_buffer::max_index in llvm generated code.
...
Everybody should respect max_index, specially llvm generated code, which
likes to eat vertices 4 at a time, so it may end up chew a bit a bit more
than actually exists.
2010-04-25 23:41:49 +01:00
José Fonseca
2cd128ab44
llvmpipe: No need to flush the caches for buffers.
2010-04-25 23:41:48 +01:00
José Fonseca
53e94bd4ad
softpipe: Make softpipe transfers in-order.
...
Transfer, being now a context operation, should happen in order with
all other contexts operations. If there is rendering pending on the
resource then the driver must flush and potentially wait itself
internally.
Instead of avoiding using transfers internally (as done in llvmpipe) I've
opted to simply pass PIPE_TRANSFER_UNSYNCHRONIZED in all internal
transfers, to avoid infinite recursion.
2010-04-25 23:41:48 +01:00
José Fonseca
43b85af56e
llvmpipe: Cleanup/improve llvmpipe_flush_resource usage.
...
Recognize PIPE_TRANSFER_UNSYNCHRONIZED and PIPE_TRANSFER_DONTBLOCK.
2010-04-25 23:41:48 +01:00
Vinson Lee
8352983e2a
llvmpipe: Remove unused variable.
2010-04-25 13:10:02 -07:00
José Fonseca
7951630d08
llvmpipe: llvmpipe_flush_texture -> llvmpipe_flush_resource
2010-04-25 15:54:32 +01:00
José Fonseca
5745bcb2db
llvmpipe: Fix buffer overflow unswizzling several formats.
...
Array formats without for channels were being advanced as four channels,
causing buffer overflows.
2010-04-25 15:54:32 +01:00
José Fonseca
89f244931f
softpipe: Hardcode TILE_CLEAR_OPTIMIZATION to 1.
...
The un-optimized path relies on surface_fill which can only handle formats
with depth <= 32, so it is pointless to keep it around.
2010-04-25 15:54:32 +01:00
José Fonseca
23df86d851
llvmpipe: Replace tile_read/write with more descriptive swizzle/unswizzle verbs.
2010-04-25 15:54:31 +01:00
José Fonseca
adc7cd6240
llvmpipe: Cleanup llvmpipe_is_format_supported().
...
It should be just cosmetic.
2010-04-25 15:54:31 +01:00
José Fonseca
7e4ce65d71
softpipe: More accurate softpipe_is_format_supported().
...
Unfortunately there are some heavy limitations on supported render target
formats due to the way clear values are used internally.
2010-04-25 15:54:31 +01:00
José Fonseca
8a70c47c4c
llvmpipe: Remove sp2lp.sh.
...
Irrelevant now that llvmpipe and softpipe grew so far apart.
2010-04-25 15:54:30 +01:00
José Fonseca
7cebd16fbb
llvmpipe: lp_tex_sample_llvm.c -> lp_tex_sample.c
...
'llvm' suffix unnecessary now that the C sampling version disappeared.
2010-04-25 15:54:30 +01:00
Vinson Lee
7b7a9e8927
st/dri: Add missing header.
...
Add GL/internal/dri_interface.h for __DRI_TEXTURE_FORMAT_RGB.
2010-04-25 02:18:52 -07:00
Vinson Lee
5d37cebc1b
gallivm: Rename variable info to opcode_info.
...
Avoid hiding existing variable already named info in outer scope.
2010-04-25 02:04:13 -07:00
Vinson Lee
d69ed3a96e
radeon: Remove NULL check of bo_legacy->tobj.
...
bo_legacy->tobj cannot be NULL before the call to driUpdateTextureLRU.
There is a NULL check earlier in the routine, and if bo_legacy->tobj is
NULL, memory is allocated.
2010-04-24 23:44:56 -07:00
Vinson Lee
a1a7738223
gallivm: Remove NULL check of pointer that can't be NULL.
...
info cannot be NULL at the call to debug_printf. emit_instruction
dereferences info, so at debug_printf it is either not NULL or the
program has already crashed.
2010-04-24 23:31:35 -07:00
Vinson Lee
9bc54ca991
dri: Remove unnecessary header.
2010-04-24 23:14:27 -07:00
Vinson Lee
bd93670bfd
nvfx: Add to SCons build.
2010-04-24 16:22:47 -07:00
Dave Airlie
22e8ddc748
llvm: fix configure.ac harder
2010-04-25 07:55:15 +10:00
Vinson Lee
ac942f5aa2
nv50: Add to SCons build.
2010-04-24 14:38:48 -07:00
Vinson Lee
b147aaea4d
llvmpipe: Remove unused variable.
2010-04-24 14:29:08 -07:00
Vinson Lee
c7bb271f0d
llvmpipe: Remove unnecessary header.
2010-04-24 14:19:47 -07:00
José Fonseca
e54a86c677
llvmpipe: Implement shader bias.
...
Fixes glean glsl1 test: texture2D(), with bias.
2010-04-24 21:00:45 +01:00
José Fonseca
cca8abe20e
mesa: Eliminate multiple va_list usage.
...
va_list is a mutable iterator. When passed to a function it will likely
point to somewhere else.
This fixes segmentation fault in glean vertProg1 on Ubuntu 9.10.
2010-04-24 20:31:30 +01:00
José Fonseca
1eeae05441
util: Add missing static keyword.
2010-04-24 16:13:54 +01:00
José Fonseca
ee15d5a0c4
util: Fix unsigned <-> ptr conversions.
2010-04-24 16:13:41 +01:00
José Fonseca
aa7a47dcbd
llvmpipe: Initialize dummy variable.
2010-04-24 16:13:18 +01:00
José Fonseca
bd6e9e3350
llvmpipe: Don't use fences when not using threads.
...
lp_setup_flush has effect immediately.
2010-04-24 16:13:04 +01:00
José Fonseca
39be50dcde
llvmpipe: Move the determination of the number of threads to the screen.
2010-04-24 13:20:39 +01:00
José Fonseca
e7a8cfc877
gallivm: Centralize the cpu caps detection.
2010-04-24 13:19:10 +01:00
José Fonseca
30a1c36dc8
llvmpipe: Pass flatshade_first to setup.
...
Fixes piglit provoking-vertex.
2010-04-24 12:00:06 +01:00
José Fonseca
e94a092437
svga: D3DCOLOR actually stands for B8G8R8A8.
2010-04-24 11:39:12 +01:00