Commit Graph

34211 Commits

Author SHA1 Message Date
Christoph Bumiller
75ee309ca9 nv50: relax restriction on surface_copy format equality a bit 2010-04-30 22:50:42 +02:00
Christoph Bumiller
6df1e5c4aa nv50: don't segfault on OPCODE_END for empty programs 2010-04-30 22:50:31 +02:00
Brian Paul
d225221e70 llvmpipe: fix out-of-bounds texture sampling
If we're using a wrap mode in which border color sampling is possible
it means that texcoords may be outside of the texture image bounds.
Fetching the texel may result in a segfault.

Use the 'use_border' variable to catch such texcoords and replace
the texel offset with zero (which will be in bounds).

Fixes segfault in Lightsmark demo, fd.o bug 27877.
2010-04-30 13:59:07 -06:00
Brian Paul
3a757b722d llvmpipe: added lp_build_sample_nop() for debugging 2010-04-30 13:59:07 -06:00
Kristian Høgsberg
9339c1291d gles: Build libGLESv1_CM.so and libGLESv2.so from glapi files 2010-04-28 14:41:21 -04:00
Kristian Høgsberg
a5107b0a5c intel: Only register ES2 extensions for ES2 contexts 2010-04-28 14:36:45 -04:00
Kristian Høgsberg
0f68032a7c configure.ac: Add options to enable GLES1/2 API support 2010-04-28 14:36:28 -04:00
Kristian Høgsberg
5efee4d4e6 intel: Advertise GLES1/2 for i915+ when enabled 2010-04-28 14:05:22 -04:00
Kristian Høgsberg
4b69100bdc dri: Add DRI entrypoints to create a context for a given API 2010-04-28 14:05:21 -04:00
Kristian Høgsberg
e2fd98d794 egl_dri2: Use new DRI API to create a GLES1/2 context when asked to 2010-04-28 14:05:21 -04:00
Kristian Høgsberg
a7a9a91d7b dri: Add DRI entrypoints to create a context for a given API 2010-04-28 14:05:21 -04:00
Kristian Høgsberg
0f5e8f7702 st/mesa: Move st_cb_drawtex.c to the mesa state tracker 2010-04-28 14:05:20 -04:00
Kristian Høgsberg
3bd6e00346 es: Drop es specific enums.c 2010-04-28 14:05:20 -04:00
Kristian Høgsberg
21ad81727c glapi: Regenerate enums.c for all APIs 2010-04-28 14:05:20 -04:00
Kristian Høgsberg
9664f10023 glapi: Update gl_enum.py to generate enum tables for multiple APIs 2010-04-28 14:05:19 -04:00
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
Kristian Høgsberg
fa41610630 mesa: Move struct _glapi_table allocation out of context.c
We now allocate the table from api_exec.c and dlist.c where we fill out
the table.  This way, context.c doesn't need to know the actual contents
of struct _glapi_table.
2010-04-22 13:43:28 -04:00
Kristian Høgsberg
ade150d667 mesa: Compute extension string according to API
We can now stop special casing glGetString() and drop specials_es*.c.
2010-04-22 12:42:23 -04:00
Kristian Høgsberg
18f7e118a5 es2: Move over es2 code to compute extensions 2010-04-22 12:42:23 -04:00
Kristian Høgsberg
04bf868ad9 main: Report GL_SHADING_LANGUAGE_VERSION according to API 2010-04-22 12:42:23 -04:00
Kristian Høgsberg
29107d4e07 mesa: Compute GL version according to API 2010-04-22 12:42:22 -04:00
Kristian Høgsberg
218ceb3e18 mesa: Move API specific context intialization into context.c 2010-04-22 12:42:17 -04:00
Kristian Høgsberg
38d771c053 st/mesa: Use API-aware context constructor
The mesa state tracker is currently the only place where we create a
context and expect it to implement GLES1/2.  Use the API-aware constructor
to communicate this to core mesa.
2010-04-22 11:44:13 -04:00
Kristian Høgsberg
2ab18d63cb mesa: Track the OpenGL API we're implementing in the context
This introduces a new way to create or initialize a context:

  _mesa_create_context_for_api and
  _mesa_initialize_context_for_api

which in addition to the current arguments take an api enum to indicate
which OpenGL API the context should implement.  At this point the
API field in GLcontext isn't used anywhere, but later commits will
key certain functionality off of it.

The _mesa_create_context and _mesa_initialize_context functions are
kept in place as wrappers around the *_for_api versions, passing in
API_OPENGL to get the same behavior as before.
2010-04-22 09:25:51 -04:00
Vinson Lee
bd91f665a7 gallivm: Remove unused variable. 2010-04-22 00:45:27 -07:00
Alex Deucher
48a1806126 r300g: fix vertex unit setup
RV3xx is 2, RV560,RV570 is 8

Noticed by Tormod Volden.
2010-04-22 02:37:34 -04:00
Vinson Lee
7a0b48e349 gallium/util: Fix deviation calculation in u_cache.
The approximate deviation calculation was using the entire cache's total
instead of each cache entry's total.
2010-04-21 18:45:44 -07:00
Vinson Lee
393009a939 gallium/tests: Add test case for u_cache. 2010-04-21 18:31:01 -07:00
Brian Paul
7fe93f831d gallivm: added some assertions in loop-gen code
We're hitting these assertions with nested loops...
2010-04-21 18:22:18 -06:00
Brian Paul
bba6a196bb gallivm: fix copy&paste error: s/cont_stack_size/break_stack_size/ 2010-04-21 17:58:32 -06:00
Brian Paul
fc9b8cd9dd gallivm: emit_instruction() is boolean 2010-04-21 17:57:44 -06:00
Brian Paul
5b639cdc3e progs/glsl: better comments 2010-04-21 16:30:13 -06:00
Brian Paul
04c136d5c2 llvmpipe: add missing dependency in Makefile 2010-04-21 16:30:13 -06:00
Brian Paul
feffd259da gallivm: implement TGSI KILP
As in tgsi_exec.c we don't actually rely on condition codes; we do
an unconditional kill.  The only predication comes from the execution
mask which applies inside loops/conditionals.
2010-04-21 16:30:13 -06:00
José Fonseca
5c364b3ef7 draw: Make LLVM integration work without llvmpipe too (e.g. sofptipe).
Prevents the assertion failure.
2010-04-21 22:58:41 +01:00
Marek Olšák
dab8f6b1d9 radeon: fix warning 2010-04-21 22:57:01 +02:00
Marek Olšák
dd029dcb14 r300g: raise the max index for generic varyings to 32
This should fix an assertion failure in the game Heroes of Newearth.
Yes, the game seems to generate semantic indices greater than 15.
2010-04-21 22:57:01 +02:00
Brian Paul
01c12ed60c softpipe: call draw_wide_point_sprites() 2010-04-21 14:25:28 -06:00