summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-01-22mapi: ENTRY_CURRENT_TABLE_GET should be stringified.Chia-I Wu
So that it can be renamed to _glapi_get_dispatch.
2011-01-21glcpp: Regenerate parser files.Kenneth Graunke
2011-01-21glcpp: Remove use of talloc reference counting.Kenneth Graunke
We almost always want to simply steal; we only need to copy when copying a token list (in which case we're already cloning stuff anyway).
2011-01-21glsl, i965: Remove unnecessary talloc includes.Kenneth Graunke
These are already picked up by ir.h or glsl_types.h.
2011-01-21ra: Use the same context when realloc'ing arrays.Kenneth Graunke
The original allocations use regs->regs as the context, so talloc will happily ignore the context given here. Change it to match to clarify that it isn't changing.
2011-01-21glsl: Improve error message when read-only vars are writtenChad Versace
Improves the cases when: * an explicit assignment references the read-only variable * an 'out' or 'inout' function parameter references the read-only variable
2011-01-21glsl: Mark 'in' variables at global scope as read-onlyChad Versace
Fixes Piglit tests: spec/glsl-1.30/compiler/storage-qualifiers/static-write-centroid-in-01.frag spec/glsl-1.30/compiler/storage-qualifiers/static-write-in-01.frag spec/glsl-1.30/compiler/storage-qualifiers/static-write-in-02.frag
2011-01-21glsl: Remove unused class ast_declaration_statmentChad Versace
2011-01-21i915g: Don't (un)map vbuf on each (un)map callJakob Bornecrantz
2011-01-21i915g: Don't do unnecessary copies of constantsJakob Bornecrantz
Even tho st/mesa use user buffers for constants align buffers other state trackers doesn't use user buffers.
2011-01-21i915g: Don't emit FS constants when VS contants changeJakob Bornecrantz
2011-01-21i915g: Use slab allocator for transfersJakob Bornecrantz
Also remove unused i915_transfer struct
2011-01-21st/dri: Fix warningJakob Bornecrantz
2011-01-21r600g: check if hardware blits are possible bevore enabling tillingChristian König
2011-01-21r600g: FLT_TO_INT_FLOOR is trans instructionAlex Deucher
Add missing evergreen FLT_TO_INT_FLOOR instruction.
2011-01-21mesa: EXT_framebuffer_sRGB interface additions.Dave Airlie
This adds the get/enable enums and internal gl_config storage for this extension. In theory this is all that is needed to enable this extension from what I can see, since its not mandatory to implement the features if you don't advertise the visuals or the fb configs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-21r600c: get OQ results only for 4 DBs on r600 classAndre Maasikas
- since evergreen addition which increased this to 8 depth backends other bytes may contain garbage values
2011-01-20intel: Fix typeos from 3d028024 and 790ff232Ian Romanick
...and remove egg from face.
2011-01-20i915: Set correct values for range/precision of fragment shader typesIan Romanick
2011-01-20i965: Set correct values for range/precision of fragment shader typesIan Romanick
2011-01-20mesa: Set correct values for range/precision of shader integer typesIan Romanick
2011-01-20mesa: Connect glGetShaderPrecisionFormat into the dispatch tableIan Romanick
2011-01-20softpipe: check for null pointers during context create/destroyBrian Paul
See http://bugs.freedesktop.org/show_bug.cgi?id=32309 Apparently, malloc() is failing during context creation. Not checking for nulls here led to crashes elsewhere.
2011-01-20graw: fix logic error in pixel format selectionBrian Paul
The loop to choose a pixel format for the window was incrementing 'i' after we succeeded in creating the window so if we chose format[0] for graw_create_window_and_screen() we were putting format[1] in the pipe_resource template for creating the render target. This only worked because of the order of the elements in the formats[] array. The graw_xlib.c code now properly compares the requested gallium pixel format against the visual's color layout. Update all the graw demos to fix the off-by-one-i error.
2011-01-20Fix the build from 887d2b64Ian Romanick
Thanks to all the include frobbing, GLuint is not known in some places that included enums.h.
2011-01-20mesa: clean-up _mesa_lookup_prim_by_nr()Brian Paul
Remove the redundant public _mesa_prim_name[] array.
2011-01-20mesa: move extra prim mode #definesBrian Paul
2011-01-20vbo: added commentBrian Paul
2011-01-20mesa: minor formatting fixesBrian Paul
2011-01-20st/mesa: clean up the sampler view format codeBrian Paul
2011-01-20mesa: document sRGBDecode fieldBrian Paul
2011-01-20st/mesa: formatting, whitespace fixesBrian Paul
2011-01-20r600c: bump sq gpr resources if a shader needs more than defaultAndre Maasikas
ideally this should be set once in the beginning of CS but there's no way to change values there while in the middle of rendering. For now reemitting SQ setup seems to work probably due to r700WaitForIdleClean after each render currently does not to try to decrease values once increased fixes hangs in glsl-vs-vec4-indexing-temp-src-in-nested-loop-combined glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined for my rv740 maybe more for other chips
2011-01-20glapi: Fix OpenGL and OpenGL ES interop.Chia-I Wu
When --enable-shared-glapi is specified, libGL will share libglapi with OpenGL ES instead of defining its own copy of glapi. This makes sure an app will get only one copy of glapi in its address space. The new option is disabled by default. When enabled, libGL and libglapi must be built from the same source tree and distributed together. This requirement comes from the fact that the dispatch offsets used by these libraries are re-assigned whenever GLAPI XMLs are changed. For GLX, indirect rendering for has_different_protocol() functions is tricky. A has_different_protocol() function is assigned only one dispatch offset, yet each entry point needs a different protocol opcode. It cannot be supported by the shared glapi. The fix to this is to make glXGetProcAddress handle such functions specially before calling _glapi_get_proc_address. Note that these files are automatically generated/re-generated src/glx/indirect.c src/glx/indirect.h src/mapi/glapi/glapi_mapi_tmp.h
2011-01-20glapi: Fix OpenGL ES 1.1 and 2.0 interop.Chia-I Wu
Move _glapi_* symbols from libGLESv1_CM.so and libGLESv2.so to libglapi.so. This makes sure an app will get only one copy of glapi in its address space. Note that with this change, libGLES* and libglapi must be built from the same source tree and distributed together. This requirement comes from the fact that the dispatch offsets used by these libraries are re-assigned whenever GLAPI XMLs are changed.
2011-01-20mapi: Add support for bridge mode.Chia-I Wu
In bridge mode, mapi no longer implements glapi.h. It becomes a user of glapi.h. Imagine an app that uses both libGL.so and libGLESv2.so. There will be two copies of glapi in the app's memory. It is possible that _glapi_get_dispatch does not return what _glapi_set_dispatch set, if they access different copies of the global variables. The solution to this situation to build either one of the libraries as a bridge to the other. Or build both libraries as bridges to another shared glapi library.
2011-01-20mapi: u_current_table may be renamed.Chia-I Wu
When MAPI_MODE_GLAPI is defined, u_current_table is renamed to _glapi_Dispatch or _glapi_tls_Dispatch. The ASM dispatchers should not use hardcoded name.
2011-01-20mapi: Add a new glapi.h implementation.Chia-I Wu
The new implementation is based on mapi. No new script is needed. As noted in sources.mk, the way to use it is to compile MAPI_GLAPI_SOURCES with MAPI_MODE_GLAPI defined.
2011-01-20mapi: Fix glapi printers for gl_and_es_API.xml.Chia-I Wu
Fix GLAPIPrinter, ES1APIPrinter, and ES2APIPrinter to output files that are ready for compilation. Since gl_and_es_API.xml is based on gl_API.xml, the hidden and handcode attributes of entries have to be overridden for ES1APIPrinter and ES2APIPrinter.
2011-01-20mapi: Allow prefix to be macro.Chia-I Wu
Treat prefix as macro when it is all uppercase. Generate PREFIX(name) instead of PREFIXname when it is a macro.
2011-01-20mapi: Add the ability to parse GLAPI XML.Chia-I Wu
A prerequisite if we want to convert vgapi.csv to vgapi.xml, or to use mapi for glapi.
2011-01-20glapi: Add gl_and_es_API.xml.Chia-I Wu
gl_and_es_API.xml defines OpenGL ES 1.1 and 2.0 API as well as OpenGL API. It consists of gl_API.xml and the newly added es_EXT.xml, ARB_get_program_binary.xml, OES_single_precision.xml, and OES_fixed_point.xml.
2011-01-19Add machine generated files to .gitignoretwied
2011-01-19glsl: Don't bother unsetting a destructor that was never set.Kenneth Graunke
This was totally copied and pasted from glsl_symbol_table.
2011-01-19softpipe: Bind samplers to views instead of the underlying resource.Henri Verbeet
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-19softpipe: Get rid of the redundant resource parameter to get_sampler_variant().Henri Verbeet
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-01-20r200: fix up some problems with TFP on r200Dave Airlie
2011-01-19llvmpipe: implement TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFSBrian Paul
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33284
2011-01-19i965/fs: Take the shared mathbox into account in instruction scheduling.Eric Anholt
I don't have evidence for this amounting to any improvement, but it does codify a bit more what we understand so far about the pipeline.
2011-01-19i965/fs: Add a helper function for detecting math opcodes.Eric Anholt