| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This let's us drop stubs.c.
|
| | |
|
| |
| |
| |
| |
| | |
This requires renaming a few functions to have unique names so that
they can all live within the same driver.
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
We can now stop special casing glGetString() and drop specials_es*.c.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, when we created a gallium texture for a corresponding Mesa
texture we'd only allocate space for mipmap levels >= BaseLevel.
This patch undoes that mechanism. This fixes a render-to-texture bug
when rendering to level 0 when BaseLevel=1.
Also, it makes sense to allocate the whole texture object memory when
BaseLevel > 0 since a common use of GL_TEXTURE_BASE_LEVEL is to
progressively load/render mipmaps. Eventually, the app almost always
fills in the level=0 mipmap image.
Finally, the texture image code is bit easier to understand now.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Most of the failure from using uninlined function calls ends up being
just bad rendering, but nested function calls in the VS currently hang
the GPU, so reject them and explain why.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We were doubling up the offsets for the mipmap levels for CPU access.
Instead of reimplementing i945_miptree_layout_2d with 6 cube images
separated by qpitch, share that function and provide the level offsets
later.
Fixes piglit cubemap and fbo-cubemap.
|
| |
| |
| |
| |
| | |
This should be functionally equivalent, with the possible exception of
NaN handling.
|
| |
| |
| |
| |
| | |
We could use this to reduce constant register pressure, but for now it
makes the resulting program assembly much more readable.
|
| |
| |
| |
| |
| | |
Print the program (plus its parameters) before calling
st_translate_mesa_program() in case we die in that function.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
Conflicts:
src/mesa/state_tracker/st_gen_mipmap.c
|
| | |
| | |
| | |
| | | |
Fixes incorrect stride when getting a compressed tex image.
|
| | |
| | |
| | |
| | |
| | | |
Before, this field was always zero for all the new mipmap levels.
Fixes problems with glGetTexImage() from a generated mipmap.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
src/glx/dri2_glx.c
src/glx/glx_pbuffer.c
|
| | |
| | |
| | |
| | | |
Signed-off-by: Brian Paul <[email protected]>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Brian Paul <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The removal of _glapi_noop_enable_warnings and _glapi_set_warning_func
in e4f168a6f4911a096be97d2e83ef8ad9c5862ec0 prevents DRI drivers built
before the commit from loading. Add stub versions of the functions to
make them load again.
|
| | |
| | |
| | |
| | | |
Signed-off-by: Eric Anholt <[email protected]>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Eric Anholt <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | | |
This struct is used to generate a hash, ignoring the entry boundaries.
Signed-off-by: Eric Anholt <[email protected]>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Put it with other, similar functions.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
These compressed format switch cases shouldn't be hit if we don't
support the compressed texture extensions, but let's be safe and
ask the driver if they're supported as we do in other cases.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Mipmap generation for compressed textures works now.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In short what the code did before:
__DRIscreen *psp = NULL;
if (pcp)
psp = pcp->psb;
assert(psp);
if (psp->stuff)
other_stuff();
return psb->even_more(pcp);
Remove all that stupid checking which still segfaults/asserts later on and
just do what we do in driUnbindContext. Also limited testing show libGL never
call driUnbindContext or driBindContext with cPriv == NULL.
|