summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-09-09llvmpipe: remove redundant tgsi_dup_tokens() callBrian Paul
We were calling this twice so the first allocation was orphaned/leaked.
2010-09-09dri/nouveau: Expose EXT_texture_env_combine.Francisco Jerez
2010-09-09dri/nv10-nv20: Add support for NV_texture_env_combine4.Francisco Jerez
2010-09-09dri/nv04: Add support for NV_texture_env_combine4.Francisco Jerez
2010-09-09dri/nouveau: Minor cleanup.Francisco Jerez
2010-09-09glx: Fix another use-after-free problemKristian Høgsberg
2010-09-09r600: add TXL instruction and note about TXBAndre Maasikas
2010-09-09r600: remove depth exports move, just set to output x <- z in the export ↵Andre Maasikas
intruction
2010-09-09r600: protect cleanup instructions from double freeAndre Maasikas
We might get the cleanup when we have not translated the shader yet e.g 2 programstringnotifys in a row
2010-09-09r600: remove mask from output intructionsAndre Maasikas
in case of relative addressing we never get to know which comps were really written.
2010-09-09r600: allow relative addressing of temps, inputs, outputsAndre Maasikas
2010-09-09r600: handle LIT writemaskAndre Maasikas
2010-09-09r600: fix rsq from negative inputAndre Maasikas
arbfp specifies rsq of abs value
2010-09-08glsl: add several EmitNo* options, and MaxUnrollIterationsLuca Barbieri
This increases the chance that GLSL programs will actually work. Note that continues and returns are not yet lowered, so linking will just fail if not supported. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-09-08glsl: make compiler options per-targetLuca Barbieri
This allows us to specify different options, especially useful for chips without unified shaders. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-09-08mesa: add PIPE_SHADER_* like constants and conversions to/from enums (v2)Luca Barbieri
Changes in v2: - No longer adds tessellation enums
2010-09-08glsl: Add info about talloc and optimization passes to the README.Eric Anholt
2010-09-08glsl: Update README talking about multi-instruction operations.Eric Anholt
The previous thing taking multiple instructions ended up being handled at the IR level, as we suggested would be the common result. Pick a new one.
2010-09-08glx: Destroy pixmap after destroying glx and dri drawablesKristian Høgsberg
Now that we suppress BadDrawable from DRI2DestroyDrawable, this doesn't matter, but we would get that error before when destroying pbuffers.
2010-09-08glsl/builtins: Set the API in the fake context.Kenneth Graunke
Otherwise it gets used uninitialized.
2010-09-08glsl2: Clear out profile pointers in _mesa_glsl_release_functionsIan Romanick
Otherwise builtin_profiles contains dangling pointers the next time _mesa_read_profile is called. I suspect this may fix bugzilla #29847, but I was never able to reproduce it.
2010-09-08mesa: Refactor parameter processing in set_combiner_(operand|source)Ian Romanick
The enum values were chosen to have sequential values for a reason. Use that to compact and simplify the code.
2010-09-08mesa: Fix handling of texenv operands for EXT vs ARB versionIan Romanick
GL_EXT_texture_env_combine has slightly more restrictive limits on the valid sources for some operands. This wasn't caught before because almost every driver in Mesa that supports the EXT version also supports the ARB version. Inspired by a patch posted the the mesa-dev mailing list by Andrew Randrianasulu.
2010-09-08glx: Ignore DRI2 event for drawables we've destroyedKristian Høgsberg
Since we now actually destroy GLX drawables, we get into situations where we get events for drawables that no longer exist. Just ignore the event in that case.
2010-09-08glx: Fix use after free problemKristian Høgsberg
2010-09-08glsl: Fix for scalar float built-in definitions.Kenneth Graunke
These need abs, and we need more tests.
2010-09-08glsl: regenerate builtinsEric Anholt
2010-09-08glsl: Fix typo in builtin step() using a wrong channel.Eric Anholt
2010-09-08ir_validate: Ensure ir_binop_dot is only used on vector types.Kenneth Graunke
2010-09-08glsl: Refresh automatically generated file builtin_function.cpp.Kenneth Graunke
2010-09-08glsl/builtins: Don't use ir_binop_dot on floating point values.Kenneth Graunke
ir_binop_dot is only defined for vector types. Use ir_binop_mul.
2010-09-08glsl/builtins: Simplify degenerate scalar float cases.Kenneth Graunke
The code being generated was just stupid, considering that: - normalize(x) = 1.0 - length(x) = x - distance(x, y) = x - y
2010-09-08glsl2: Make sure _mesa_glsl_parse_state constructor gets a contextIan Romanick
Fix an major regression in dc754586. Too bad that change was obviously never tested.
2010-09-08glx: Drop broken drawable garbage collectionKristian Høgsberg
Doesn't work for pixmaps, was looking up the GLX XID and was never thread safe. Instead, just destroy the client side structures when the drawable is no long current for a context.
2010-09-08dri: Unset current context and dispatch table when unbindingKristian Høgsberg
Otherwise, when we switch to an indirect glx context and then back, it looks like we're still current. https://bugs.freedesktop.org/show_bug.cgi?id=29977#c7 Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-09-08glsl: Support GLSL ES in the standalone compile.Chia-I Wu
GLSL ES mode is enabled when --glsl-es is passed to glsl_compiler.
2010-09-08glsl: Require a context in _mesa_glsl_parse_state.Chia-I Wu
Create a dummy context in the standalone compiler and pass it to _mesa_glsl_parse_state.
2010-09-08st/dri: Call dri_init_extensions only for API_OPENGL.Chia-I Wu
libmesagallium.a that this state tracker will be linked to expects OpenGL's _glapi_table. That is, it expects libGL.so instead of libGLESv1_CM.so or libGLESv2.so. As there is no clean way to know the shared library the app links to, use the api as a simple check. It might be as well to simply remove this function call though.
2010-09-08st/dri: Use enum st_api_type internally.Chia-I Wu
2010-09-08st/dri: Add multi-api supportnobled
Make st/dri screens capable of creating OpenGL ES and OpenGL ES2 contexts. TODO: Figure out the "get_current" problem with multiple st_api's for real. (s/API_OPENGLES1/API_OPENGLES/ by Chia-I Wu)
2010-09-08st/dri: Make clear which API's are supportednobled
If the caller requests a GLES context, don't silently create a desktop GL context in its place.
2010-09-08r600g: add initial bank swizzle support.Dave Airlie
this is ported from r600c mostly, bank swizzling is real messy and I don't think I got enough sleep last night to fully understand it.
2010-09-07glcpp: Fix build on non-GCC compilers.Kenneth Graunke
2010-09-07ast_to_hir: Mark arrays as lvalues in GLSL ES, but prohibit assignment.Kenneth Graunke
This allows them to be passed as out/inout parameters, but still prevents them from being used as the target of an assignment. This is per section 5.8 of the GLSL ES 1.00 specification.
2010-09-07glsl: Allow overloading of built-ins without hiding in GLSL ES.Kenneth Graunke
The rules are explicitly different from desktop GLSL.
2010-09-07glsl: Move is_builtin flag back to ir_function_signature.Kenneth Graunke
This effectively reverts b6f15869b324ae64a00d0fe46fa3c8c62c1edb6c. In desktop GLSL, defining a function with the same name as a built-in hides that built-in function completely, so there would never be built-in and user function signatures in the same ir_function. However, in GLSL ES, overloading built-ins is allowed, and does not hide the built-in signatures - so we're back to needing this.
2010-09-07ast_to_hir: Reject embedded structure definitions in GLSL ES 1.00.Kenneth Graunke
2010-09-07ast_to_hir: Reject unsized array declarations in GLSL ES 1.00.Kenneth Graunke
2010-09-07ast_to_hir: Allow matrix-from-matrix constructors in GLSL ES.Kenneth Graunke
Everything but 1.10 supports this, so just change the check to ==.
2010-09-07i965: Enable EXT_framebuffer_blit internally.Kenneth Graunke
Otherwise, ES2's BindFramebuffer entrypoint hits this assertion: main/fbobject.c:1323: _mesa_BindFramebufferEXT: Assertion `ctx->Extensions.EXT_framebuffer_blit' failed.