summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* st/dri: support EGL_MESA_image_drm: createImageben2010-09-091-0/+58
| | | | Signed-off-by: Jakob Bornecrantz <[email protected]>
* eglglx: Convert glx visuals/fbconfigs straight to EGL configsKristian Høgsberg2010-09-095-292/+101
| | | | In other words, skip the __GLcontextModes middle man.
* egl: Remove old egldri driverKristian Høgsberg2010-09-093-1390/+0
| | | | This driver doesn't work with any of the DRI drivers in the source tree.
* glapi: Implement optional dispatch loggingKristian Høgsberg2010-09-098-25/+119
| | | | | | | There's a useful feature buried in glapi to log all API calls to stderr. Unfortunately it requires editing the code and then it's enabled unconditionally for that build. This patch builds in API logging for debug builds and makes it run-time switchable by setting MESA_DEBUG=dispatch.
* glx: Optimize out no-op make current callsKristian Høgsberg2010-09-091-0/+4
| | | | | This make a lot more sense now that we might have to recreate the glx drawables for legacy code paths.
* egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.Chia-I Wu2010-09-101-1/+1
| | | | | _EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext on error.
* egl: Display may be NULL in _eglLookup*.Chia-I Wu2010-09-103-3/+3
| | | | This fixes several NULL dereferences.
* llvmpipe: remove redundant tgsi_dup_tokens() callBrian Paul2010-09-091-3/+0
| | | | We were calling this twice so the first allocation was orphaned/leaked.
* dri/nouveau: Expose EXT_texture_env_combine.Francisco Jerez2010-09-091-0/+1
|
* dri/nv10-nv20: Add support for NV_texture_env_combine4.Francisco Jerez2010-09-092-13/+19
|
* dri/nv04: Add support for NV_texture_env_combine4.Francisco Jerez2010-09-092-13/+24
|
* dri/nouveau: Minor cleanup.Francisco Jerez2010-09-091-21/+29
|
* glx: Fix another use-after-free problemKristian Høgsberg2010-09-091-1/+3
|
* r600: add TXL instruction and note about TXBAndre Maasikas2010-09-091-5/+12
|
* r600: remove depth exports move, just set to output x <- z in the export ↵Andre Maasikas2010-09-091-70/+5
| | | | intruction
* r600: protect cleanup instructions from double freeAndre Maasikas2010-09-092-2/+20
| | | | | We might get the cleanup when we have not translated the shader yet e.g 2 programstringnotifys in a row
* r600: remove mask from output intructionsAndre Maasikas2010-09-096-45/+1
| | | | | in case of relative addressing we never get to know which comps were really written.
* r600: allow relative addressing of temps, inputs, outputsAndre Maasikas2010-09-091-13/+30
|
* r600: handle LIT writemaskAndre Maasikas2010-09-091-147/+141
|
* r600: fix rsq from negative inputAndre Maasikas2010-09-091-0/+3
| | | | arbfp specifies rsq of abs value
* docs: Update egl.html.Chia-I Wu2010-09-091-2/+10
| | | | | Mention that EGL_DRIVERS_PATH should be specified for uninstalled build. Update TODOs.
* glsl: add several EmitNo* options, and MaxUnrollIterationsLuca Barbieri2010-09-0811-19/+27
| | | | | | | | | 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 <[email protected]>
* glsl: make compiler options per-targetLuca Barbieri2010-09-088-25/+64
| | | | | | | This allows us to specify different options, especially useful for chips without unified shaders. Signed-off-by: Ian Romanick <[email protected]>
* mesa: add PIPE_SHADER_* like constants and conversions to/from enums (v2)Luca Barbieri2010-09-083-0/+72
| | | | | Changes in v2: - No longer adds tessellation enums
* glsl: Add info about talloc and optimization passes to the README.Eric Anholt2010-09-081-0/+26
|
* glsl: Update README talking about multi-instruction operations.Eric Anholt2010-09-081-4/+4
| | | | | | 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.
* glx: Destroy pixmap after destroying glx and dri drawablesKristian Høgsberg2010-09-081-2/+2
| | | | | Now that we suppress BadDrawable from DRI2DestroyDrawable, this doesn't matter, but we would get that error before when destroying pbuffers.
* configure: Enable -fvisibility=hidden for g++ as wellKristian Høgsberg2010-09-081-0/+7
|
* glsl/builtins: Set the API in the fake context.Kenneth Graunke2010-09-082-0/+2
| | | | Otherwise it gets used uninitialized.
* glsl2: Clear out profile pointers in _mesa_glsl_release_functionsIan Romanick2010-09-082-0/+2
| | | | | | 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.
* mesa: Refactor parameter processing in set_combiner_(operand|source)Ian Romanick2010-09-081-68/+22
| | | | | The enum values were chosen to have sequential values for a reason. Use that to compact and simplify the code.
* mesa: Fix handling of texenv operands for EXT vs ARB versionIan Romanick2010-09-081-18/+19
| | | | | | | | | | 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.
* glx: Ignore DRI2 event for drawables we've destroyedKristian Høgsberg2010-09-081-1/+1
| | | | | | 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.
* glx: Fix use after free problemKristian Høgsberg2010-09-081-6/+7
|
* glsl: Fix for scalar float built-in definitions.Kenneth Graunke2010-09-083-4/+4
| | | | These need abs, and we need more tests.
* glsl: regenerate builtinsEric Anholt2010-09-081-1/+1
|
* glsl: Fix typo in builtin step() using a wrong channel.Eric Anholt2010-09-081-1/+1
|
* ir_validate: Ensure ir_binop_dot is only used on vector types.Kenneth Graunke2010-09-081-0/+1
|
* glsl: Refresh automatically generated file builtin_function.cpp.Kenneth Graunke2010-09-081-11/+9
|
* glsl/builtins: Don't use ir_binop_dot on floating point values.Kenneth Graunke2010-09-084-6/+6
| | | | ir_binop_dot is only defined for vector types. Use ir_binop_mul.
* glsl/builtins: Simplify degenerate scalar float cases.Kenneth Graunke2010-09-083-5/+3
| | | | | | | The code being generated was just stupid, considering that: - normalize(x) = 1.0 - length(x) = x - distance(x, y) = x - y
* glsl2: Make sure _mesa_glsl_parse_state constructor gets a contextIan Romanick2010-09-082-2/+4
| | | | | Fix an major regression in dc754586. Too bad that change was obviously never tested.
* glx: Drop broken drawable garbage collectionKristian Høgsberg2010-09-089-59/+48
| | | | | | 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.
* dri: Unset current context and dispatch table when unbindingKristian Høgsberg2010-09-084-0/+13
| | | | | | | | 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 <[email protected]>
* glsl: Support GLSL ES in the standalone compile.Chia-I Wu2010-09-081-1/+3
| | | | GLSL ES mode is enabled when --glsl-es is passed to glsl_compiler.
* glsl: Require a context in _mesa_glsl_parse_state.Chia-I Wu2010-09-082-62/+62
| | | | | Create a dummy context in the standalone compiler and pass it to _mesa_glsl_parse_state.
* st/dri: Call dri_init_extensions only for API_OPENGL.Chia-I Wu2010-09-081-1/+9
| | | | | | | | 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.
* st/dri: Use enum st_api_type internally.Chia-I Wu2010-09-085-27/+39
|
* st/dri: Add multi-api supportnobled2010-09-085-13/+46
| | | | | | | | | | 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)
* st/dri: Make clear which API's are supportednobled2010-09-081-1/+4
| | | | | If the caller requests a GLES context, don't silently create a desktop GL context in its place.