summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* mesa/st: set compiler options based on Gallium shader capsLuca Barbieri2010-09-141-0/+9
| | | | | | | | This turns on if conversion and unlimited loop unrolling if control flow is not supported. NOTE: this will change the behavior of r300g and any other driver that doesn't advertise control flow
* gallium: introduce get_shader_param (ALL DRIVERS CHANGED) (v3)Luca Barbieri2010-09-141-24/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in v3: - Also change trace, which I forgot about Changes in v2: - No longer adds tessellation shaders Currently each shader cap has FS and VS versions. However, we want a version of them for geometry, tessellation control, and tessellation evaluation shaders, and want to be able to easily query a given cap type for a given shader stage. Since having 5 duplicates of each shader cap is unmanageable, add a new get_shader_param function that takes both a shader cap from a new enum and a shader stage. Drivers with non-unified shaders will first switch on the shader and, within each case, switch on the cap. Drivers with unified shaders instead first check whether the shader is supported, and then switch on the cap. MAX_CONST_BUFFERS is now per-stage. The geometry shader cap is removed in favor of checking whether the limit of geometry shader instructions is greater than 0, which is also used for tessellation shaders. WARNING: all drivers changed and compiled but only nvfx tested
* glsl: introduce ir_binop_all_equal and ir_binop_any_equal, allow vector cmpsLuca Barbieri2010-09-131-1/+7
| | | | | | | | | | | | | | | | | Currently GLSL IR forbids any vector comparisons, and defines "ir_binop_equal" and "ir_binop_nequal" to compare all elements and give a single bool. This is highly unintuitive and prevents generation of optimal Mesa IR. Hence, first rename "ir_binop_equal" to "ir_binop_all_equal" and "ir_binop_nequal" to "ir_binop_any_nequal". Second, readd "ir_binop_equal" and "ir_binop_nequal" with the same semantics as less, lequal, etc. Third, allow all comparisons to acts on vectors. Signed-off-by: Ian Romanick <[email protected]>
* i965: Request that returns be lowered in shader mainIan Romanick2010-09-131-0/+1
| | | | Fixes piglit tests glsl-vs-main-return and glsl-fs-main-return.
* glsl: call ir_lower_jumps according to compiler optionsLuca Barbieri2010-09-131-0/+2
|
* r600c: const buffer sizes must be a multiple of 16 constsAlex Deucher2010-09-133-29/+21
| | | | This applies to r6xx/r7xx/evergreen
* r600c/eg: remove obselete commentAlex Deucher2010-09-131-2/+0
|
* r600c/eg: remove unused emit timestamp functionAlex Deucher2010-09-131-8/+0
|
* r600c/eg: emit CB_BLEND_ALPHA with the other blend valuesAlex Deucher2010-09-131-5/+5
| | | | saves a few dwords
* r600c: remove redundant state emit on evergreenAlex Deucher2010-09-131-17/+0
| | | | r700start3d already emits the context control packets
* mesa: Revert accidentally committed vertex code chunkKristian Høgsberg2010-09-131-2/+0
|
* r600c: eg: fix typoAndre Maasikas2010-09-131-1/+1
| | | | probably copy/paste error
* r600c: eg: 256 float4 constants may need more than 256 bytesAndre Maasikas2010-09-132-2/+2
|
* r600c: eg - fix uninitialized variableAndre Maasikas2010-09-131-0/+2
|
* glx: Don't destroy DRI2 drawables for legacy glx drawablesKristian Høgsberg2010-09-131-0/+2
| | | | | | | | | | | For GLX 1.3 drawables, we can destroy the DRI2 drawable when the GLX drawable is destroyed. However, for legacy drawables, there os no good way of knowing when the application is done with it, so we just let the DRI2 drawable linger on the server. The server will destroy the DRI2 drawable when it destroys the X drawable or the client exits anyway. https://bugs.freedesktop.org/show_bug.cgi?id=30109
* r600c: remove stray unmap callAndre Maasikas2010-09-131-1/+0
| | | | no idea how/why it got there
* r300/compiler: fix warningsMarek Olšák2010-09-132-2/+3
|
* mesa: Fix depend.es[12] generation when LLVM is enabled.Chia-I Wu2010-09-122-29/+27
| | | | | | "llvm-config --cflags" outputs -f options, which conflict makedepend. Clean up compiler flags and append LLVM_CFLAGS to the new xxx_CFLAGS instead of xxx_CPPFLAGS, where xxx may be MESA, ES1, or ES2.
* r300/compiler: Reorganize presub_helper()Tom Stellard2010-09-101-33/+27
|
* r300/compiler: Don't use presubtract in TEX instructionsTom Stellard2010-09-101-1/+6
|
* r300/compiler: Print the presub subtract operation in the correct orderTom Stellard2010-09-101-6/+6
|
* r300/compiler: Fix dataflow bug in presub_helper()Tom Stellard2010-09-101-0/+2
|
* r300/compiler: Replace asserts with error messagesTom Stellard2010-09-101-2/+10
|
* r300/compiler: Fix copy propigation for some presub instructionsTom Stellard2010-09-101-1/+1
|
* r300/compiler: Add peephole optimization for the 'sub' presubtract operationTom Stellard2010-09-101-8/+17
|
* r300/compiler: Add peephole optimization for the 'add' presubtract operationTom Stellard2010-09-102-84/+200
|
* r300/compiler: Clean up rc_pair_alloc_source()Tom Stellard2010-09-101-20/+12
|
* r300/compiler: Enable presubtract sourcesTom Stellard2010-09-1015-94/+1072
| | | | | | | The r300 compiler can now emit instructions that select from the presubtract source. A peephole optimization has been added to convert instructions like: ADD Temp[0].x, none.1, -Temp[1].x into the INV (1 - src0) presubtract operation.
* mesa: Remove unused Emit flags from gl_shader_compiler_optionsIan Romanick2010-09-101-2/+0
|
* intel: Remove noise opcode support from i915 and i965 driversIan Romanick2010-09-102-1135/+0
| | | | | With recent changes to the GLSL compiler, these opcode should never be seen in these drivers.
* r600c: add missing headerAlex Deucher2010-09-101-0/+1
|
* r600c: add OQ support for evergreenAlex Deucher2010-09-103-16/+55
|
* r600c: oq updatesAlex Deucher2010-09-103-2/+4
|
* r600c: add blit support for evergreenAlex Deucher2010-09-105-3/+1918
| | | | | driver was previously calling the r600 blit code which won't work on evergreen.
* r600c: emit start3d packet on evergreenAlex Deucher2010-09-101-2/+1
|
* r600c: fix some typosAlex Deucher2010-09-102-3/+3
|
* r600c: fix type in cb setup on evergreenAlex Deucher2010-09-101-3/+2
|
* r600c: add support for more rendering formats on evergreenAlex Deucher2010-09-102-32/+255
|
* r600: set correct initial point_minmax valuesAndre Maasikas2010-09-101-0/+4
|
* r600: dont bswap rgba FLOAT formatsAndre Maasikas2010-09-101-2/+2
| | | | fixes at least some readback tests in piglit
* gallium: Remove ST_API_OPENGL_ES1 and ST_API_OPENGL_ES2.Chia-I Wu2010-09-102-66/+0
| | | | They are no longer used.
* gallium: Add context profile support to st_api.Chia-I Wu2010-09-102-21/+60
| | | | | | | | | | | | | | | Add struct st_context_attribs to describe context profiles and attributes. Modify st_api::create_context to take the new struct instead of an st_visual. st_context_attribs can be used to support GLX_ARB_create_context_profile and GLX_EXT_create_context_es2_profile in the future. But the motivation for doing it now is to be able to replace ST_API_OPENGL_ES1 and ST_API_OPENGL_ES2 by profiles. Having 3 st_api's to provide OpenGL, OpenGL ES 1.1, and OpenGL ES 2.0 is not a sane abstraction, since all of them share glapi for current context/dispatch management.
* i965: Add switch cases for ir_unop_noise, which should have been lowered.Eric Anholt2010-09-092-0/+7
| | | | Fixes compiler warnings.
* Revert "glapi: Implement optional dispatch logging"Kristian Høgsberg2010-09-096-59/+8
| | | | | | This reverts commit b9abc6139a310677a37754ea7172d976dbf56979 and the follow on fixes (7aae704 and 6fe1b47). It's changing the glapi/driver ABI and causes a number of problems for debug/non-debug builds.
* glsl2: Add EmitNoNoise flag, use it to remove noise opcodesIan Romanick2010-09-095-11/+8
|
* glsl2: Add ir_unop_noiseIan Romanick2010-09-091-0/+10
|
* mesa: Only reference logging symbols in debug buildsKristian Høgsberg2010-09-091-0/+11
|
* mesa: Don't reuse DummyFramebuffer as the incomplete framebufferKristian Høgsberg2010-09-092-1/+10
| | | | | | Binding framebuffer 0 on a context that doesn't have a winsys drawable will try to bind the incomplete framebuffer. That fails when that's also the dummy framebuffer.
* glapi: Implement optional dispatch loggingKristian Høgsberg2010-09-096-8/+48
| | | | | | | 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.
* dri/nouveau: Expose EXT_texture_env_combine.Francisco Jerez2010-09-091-0/+1
|