Commit graph

30679 commits

Author SHA1 Message Date
Kristian Høgsberg
12c46b15d7 mesa: Drop unused _mesa_init_drawtex_dispatch() 2010-04-28 14:05:19 -04:00
Kristian Høgsberg
1904ba7936 mesa: Move drawtex functionality to main/ 2010-04-28 14:05:19 -04:00
Kristian Høgsberg
87eb667759 mesa: Move glQueryMatrixxOES() implementation to core mesa 2010-04-28 14:05:19 -04:00
Kristian Høgsberg
a73eff645f mesa: Move GLES1 texgen functions to texgen.c 2010-04-28 14:05:18 -04:00
Kristian Høgsberg
7179a82262 mesa: Move support for paletted textures to main/teximage.c 2010-04-28 14:05:18 -04:00
Kristian Høgsberg
08fae07f52 mesa: Handle GL_TEXTURE_GEN_STR_OES in _mesa_Enable() 2010-04-28 14:04:49 -04:00
Kristian Høgsberg
7aae8a592a mesa: Move get_es*.c to main/ 2010-04-27 19:28:11 -04:00
Kristian Høgsberg
0034339895 es: Prefix the get* functions with _es1/2 so they don't conflict 2010-04-27 19:28:11 -04:00
Kristian Høgsberg
61d94dd207 mesa: Move GL_RGB565 workaround into fbobject.c 2010-04-27 19:28:10 -04:00
Kristian Høgsberg
44f9aef9ee mesa: Move GLES1/2 vbo entrypoints to vbo_exec_api.c
This let's us drop stubs.c.
2010-04-27 19:28:10 -04:00
Kristian Høgsberg
c90166fd4f mesa: Move GLES2 shader stubs to main/shaders.c 2010-04-27 19:28:10 -04:00
Kristian Høgsberg
ea0c7e7163 mesa: Move api_exec_es*.c into mesa/main
This requires renaming a few functions to have unique names so that
they can all live within the same driver.
2010-04-27 19:27:49 -04:00
Kristian Høgsberg
1741ddb747 mesa: Move references to main/remap_helper.h to api_exec.c 2010-04-27 13:09:31 -04:00
Roland Scheidegger
9a966b93c0 gallium: fix glaring bugs in last commit 2010-04-27 16:25:50 +02:00
Roland Scheidegger
aac2cccccf gallium: interface changes for multisampling
add function to set sample mask, and state for alpha-to-coverage and
alpha-to-one. Also make it possible to query for supported sample count
with is_msaa_supported().

Use explicit resource_resolve() to resolve a resource. Note that it is illegal
to bind a unresolved resource as a sampler view, must be resolved first (as per
d3d10 and OGL APIs, binding unresolved resource would mean that special texture
fetch functions need to be used which give explicit control over what samples
to fetch, which isn't supported yet).

Also change surface_fill() and surface_copy() to operate directly on resources.
Blits should operate directly on resources, most often state trackers just used
get_tex_surface() then did a blit. Note this also means the blit bind flags are
gone, if a driver implements this functionality it is expected to handle it for
all resources having depth_stencil/render_target/sampler_view bind flags (might
even require it for all bind flags?).

Might want to introduce quality levels for MSAA later.
Might need to revisit this for hw which does instant resolve.
2010-04-26 19:51:25 +02:00
Alan Hourihane
06574e45b4 gallivm: BGNFOR/ENDFOR fallthrough to BGNLOOP/ENDLOOP 2010-04-26 17:42:51 +01:00
José Fonseca
6ecbbc3c05 draw: Always use the llvm middle end when available & enabled. 2010-04-26 16:05:06 +01:00
José Fonseca
7fd9e3cfb0 svga: Pass-through max_index to translate. 2010-04-26 16:05:06 +01:00
José Fonseca
2a30d3d74a draw: Pass-through pipe_buffer::max_index to translate.
max_index must be observed to prevent crashes due to bad index data.

I've been using this patch for some time without regressions.

Some places, where we use internal vertex buffer, it is not entirely
clear what max_index should be, so passing just ~0 to avoid regressions
for now.
2010-04-26 16:05:06 +01:00
José Fonseca
fc431a58dc translate: Take and respect a max_index argument. 2010-04-26 16:05:06 +01:00
Corbin Simpson
b02f1c86f5 r300g: Rudimentary stats, printed on exit.
Whoo!
2010-04-26 07:13:51 -07:00
Corbin Simpson
bf98d61708 r300g: Add stats debug flag. 2010-04-26 07:13:51 -07:00
Andre Maasikas
12172071b5 r600: enable VERT_RESULT_PSIZ - makes point size & attenuation work
doc additions: shader export ARRAY_BASE for EXPORT_POS: 60 is position,
61 is misc vec(VS_OUT_MISC_VEC - used here),
62, 63 are clip distance vectors(VS_OUT_CCDIST#)

sorry for formating - there seem to be so many different styles in r600
2010-04-26 13:30:01 +03:00
Andre Maasikas
04a148629f r600: adjust point sprites after 911fa4a4a1
there's no more vp results for point coords so we cannot iterate
over vp outputs. Use only Point.CoordReplace[i]
2010-04-26 13:30:01 +03:00
Vinson Lee
31db310be4 os: Check for spurious wakeups in pipe_barrier_wait.
The POSIX function pthread_cond_wait can have spurious wakeups when
waiting on a condition variable.

Add a 64-bit counter that is incremented whenever the barrier becomes
full. A woken thread checks the counter. If the counter has not changed
then it has been spuriously woken and goes back to sleep. If the counter
has changed then it was properly signaled and exits the barrier.

Tested on Mac OS X.

This patch was based on ideas from Luca Barbieri.
2010-04-26 00:31:20 -07:00
Corbin Simpson
59fcbc0ac5 r300g: Use table CS writing when applicable.
I just broke the 2000 fps barrier on glxgears. Yay?
2010-04-26 00:24:26 -07:00
Corbin Simpson
c53142c3f4 r300g: Add CS table writing. 2010-04-26 00:24:26 -07:00
Vinson Lee
2d1b95477f et/egl: Remove dead code.
proc_name cannot be NULL after the switch statement. proc_name is
assigned a value or the function has already returned.
2010-04-26 00:19:14 -07:00
Vinson Lee
310ec9a17c nvfx: Add include path to SCons build. 2010-04-25 22:51:14 -07:00
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