José Fonseca [Fri, 3 Sep 2010 09:54:41 +0000 (10:54 +0100)]
gallivm: Cleanup the TGSI <-> sampler interface.
José Fonseca [Fri, 3 Sep 2010 09:53:39 +0000 (10:53 +0100)]
gallivm: Add some utility functions to set/get array elements too.
José Fonseca [Thu, 2 Sep 2010 11:45:50 +0000 (12:45 +0100)]
gallivm: Basic AoS TGSI -> LLVM IR.
Essentially a variation of the SoA version.
José Fonseca [Thu, 2 Sep 2010 11:14:39 +0000 (12:14 +0100)]
gallivm: Move the texture modifiers to the header.
Useful to pass these around.
José Fonseca [Thu, 2 Sep 2010 11:13:46 +0000 (12:13 +0100)]
gallivm: s/lp_build_broadcast_aos/lp_build_swizzle_scalar_aos/
More accurate description of this function purpose.
Alex Corscadden [Wed, 8 Sep 2010 23:59:03 +0000 (16:59 -0700)]
Add a test for the KIL opcode
This is a simple test for the KIL opcode. It should render a 6 sided figure
with a colored interior.
Keith Whitwell [Sat, 11 Sep 2010 09:04:34 +0000 (10:04 +0100)]
llvmpipe: restore larger command blocks
Keith Whitwell [Wed, 8 Sep 2010 17:46:39 +0000 (18:46 +0100)]
llvmpipe: move some debug to DEBUG_SCENE
Keith Whitwell [Wed, 8 Sep 2010 17:37:45 +0000 (18:37 +0100)]
llvmpipe: add DEBUG_MEM option
Keith Whitwell [Tue, 7 Sep 2010 22:54:09 +0000 (23:54 +0100)]
llvmpipe: allow bigger scenes
Tom Stellard [Fri, 10 Sep 2010 02:13:57 +0000 (19:13 -0700)]
r300/compiler: Reorganize presub_helper()
Tom Stellard [Thu, 9 Sep 2010 17:19:52 +0000 (10:19 -0700)]
r300/compiler: Don't use presubtract in TEX instructions
Tom Stellard [Tue, 7 Sep 2010 17:23:30 +0000 (10:23 -0700)]
r300/compiler: Print the presub subtract operation in the correct order
Tom Stellard [Tue, 7 Sep 2010 17:22:16 +0000 (10:22 -0700)]
r300/compiler: Fix dataflow bug in presub_helper()
Tom Stellard [Tue, 7 Sep 2010 03:48:10 +0000 (20:48 -0700)]
r300/compiler: Replace asserts with error messages
Tom Stellard [Mon, 6 Sep 2010 22:31:07 +0000 (15:31 -0700)]
r300/compiler: Fix copy propigation for some presub instructions
Tom Stellard [Mon, 6 Sep 2010 17:57:20 +0000 (10:57 -0700)]
r300/compiler: Add peephole optimization for the 'sub' presubtract operation
Tom Stellard [Mon, 30 Aug 2010 15:59:30 +0000 (08:59 -0700)]
r300/compiler: Add peephole optimization for the 'add' presubtract operation
Tom Stellard [Sun, 5 Sep 2010 02:10:23 +0000 (19:10 -0700)]
r300/compiler: Clean up rc_pair_alloc_source()
Tom Stellard [Wed, 14 Jul 2010 04:25:27 +0000 (21:25 -0700)]
r300/compiler: Enable presubtract sources
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.
Ian Romanick [Fri, 10 Sep 2010 20:10:26 +0000 (13:10 -0700)]
mesa: Remove unused Emit flags from gl_shader_compiler_options
Ian Romanick [Thu, 9 Sep 2010 23:27:37 +0000 (16:27 -0700)]
intel: Remove noise opcode support from i915 and i965 drivers
With recent changes to the GLSL compiler, these opcode should never be
seen in these drivers.
Alex Deucher [Fri, 10 Sep 2010 18:14:12 +0000 (14:14 -0400)]
r600c: add missing header
Alex Deucher [Fri, 10 Sep 2010 17:26:10 +0000 (13:26 -0400)]
r600c: add OQ support for evergreen
Alex Deucher [Fri, 10 Sep 2010 17:13:08 +0000 (13:13 -0400)]
r600c: oq updates
Alex Deucher [Fri, 10 Sep 2010 16:54:44 +0000 (12:54 -0400)]
r600c: add blit support for evergreen
driver was previously calling the r600 blit code
which won't work on evergreen.
Alex Deucher [Fri, 10 Sep 2010 15:40:46 +0000 (11:40 -0400)]
r600c: emit start3d packet on evergreen
Alex Deucher [Fri, 10 Sep 2010 01:16:55 +0000 (21:16 -0400)]
r600c: fix some typos
Alex Deucher [Fri, 10 Sep 2010 00:36:23 +0000 (20:36 -0400)]
r600c: fix type in cb setup on evergreen
Alex Deucher [Fri, 10 Sep 2010 00:26:11 +0000 (20:26 -0400)]
r600c: add support for more rendering formats on evergreen
Andre Maasikas [Fri, 10 Sep 2010 11:41:33 +0000 (14:41 +0300)]
r600: set correct initial point_minmax values
Tilman Sauerbeck [Thu, 9 Sep 2010 19:33:37 +0000 (21:33 +0200)]
r600g: Fixed a bo reference leak in the draw module.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Tilman Sauerbeck [Thu, 9 Sep 2010 13:24:50 +0000 (15:24 +0200)]
r600g: Only increase a bo's map_count if radeon_bo_map() succeeded.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Tilman Sauerbeck [Thu, 9 Sep 2010 12:57:32 +0000 (14:57 +0200)]
r600g: Fixed a bo leak in the error path of radeon_ctx_set_bo_new().
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Tilman Sauerbeck [Thu, 9 Sep 2010 12:03:46 +0000 (14:03 +0200)]
r600g: Fixed a bo leak in r600_texture_from_handle().
We would leak bo if the argument check failed.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Tilman Sauerbeck [Thu, 9 Sep 2010 11:51:51 +0000 (13:51 +0200)]
r600g: Don't leave stale references in query_list when we cannot create bo.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Tilman Sauerbeck [Wed, 8 Sep 2010 09:21:21 +0000 (11:21 +0200)]
r600g: Implemented the y component write for the LOG opcode.
This makes the 'vp1-LOG test' piglit test work.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Chia-I Wu [Fri, 10 Sep 2010 10:26:03 +0000 (18:26 +0800)]
egl: Simplify _eglBindContext.
Remove the hard-to-get-right _eglBindContextToSurfaces. As well as fix
an assertion failure from
b90a3e7d8b1bcd412ddbf2a4803de2756dacd436 when
such call sequence is hit
eglMakeCurrent(dpy, surf1, surf1, ctx1);
eglMakeCurrent(dpy, surf2, surf2, ctx2);
eglMakeCurrent(dpy, surf1, surf1, ctx1);
Andre Maasikas [Fri, 10 Sep 2010 09:12:36 +0000 (12:12 +0300)]
r600: dont bswap rgba FLOAT formats
fixes at least some readback tests in piglit
Chia-I Wu [Fri, 10 Sep 2010 08:01:37 +0000 (16:01 +0800)]
targets/egl: Fix crashes from loading invalid modules.
Be defensive.
Chia-I Wu [Fri, 10 Sep 2010 05:42:49 +0000 (13:42 +0800)]
gallium: Remove ST_API_OPENGL_ES1 and ST_API_OPENGL_ES2.
They are no longer used.
Chia-I Wu [Fri, 10 Sep 2010 04:59:43 +0000 (12:59 +0800)]
st/egl: Use profiles to create OpenGL ES contexts.
Replace all uses of ST_API_OPENGL_ES{1,2} 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.
Chia-I Wu [Fri, 10 Sep 2010 05:23:06 +0000 (13:23 +0800)]
st/dri: Use profiles to create OpenGL ES contexts.
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.
Chia-I Wu [Fri, 10 Sep 2010 02:31:06 +0000 (10:31 +0800)]
gallium: Add context profile support to st_api.
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.
Dave Airlie [Fri, 10 Sep 2010 12:41:00 +0000 (22:41 +1000)]
r600g: fixup state calculations for picking states.
for evergreen I ended up using a non-contig array of states, but
this code needs a bit of fixing up to deal with that.
Dave Airlie [Fri, 10 Sep 2010 11:58:43 +0000 (21:58 +1000)]
r600g: fixup CB state numbering header
Dave Airlie [Fri, 10 Sep 2010 04:07:49 +0000 (14:07 +1000)]
r600g: fix warning in r600 pipe driver
Dave Airlie [Fri, 10 Sep 2010 03:50:31 +0000 (13:50 +1000)]
r600g: evergreen CBs are more sane to support with a single state
Dave Airlie [Fri, 10 Sep 2010 03:50:16 +0000 (13:50 +1000)]
r600g: add multi-buffer flush support properly.
Dave Airlie [Fri, 10 Sep 2010 03:48:41 +0000 (13:48 +1000)]
r600g: fix regression in multi-buffer tests since CB flush merge
Eric Anholt [Fri, 10 Sep 2010 02:49:58 +0000 (19:49 -0700)]
i965: Add switch cases for ir_unop_noise, which should have been lowered.
Fixes compiler warnings.
Dave Airlie [Fri, 3 Sep 2010 04:38:41 +0000 (14:38 +1000)]
r600g: add initial evergreen support
adds shader opcodes + assembler support (except ARL)
uses constant buffers
add interp instructions in fragment shader
adds all evergreen hw states
adds evergreen pm4 support.
this runs gears for me on my evergreen
Dave Airlie [Fri, 10 Sep 2010 01:27:31 +0000 (11:27 +1000)]
r600g: align flushing of cb/db with DDX/r600c.
the DDX and r600c both flush cb/db after the draw is emitted,
as long as they do that, r600g can't be different, as it races.
We end up with r600g flush, set CB, DDX set CB, flush. This
was causing misrendering on my evergreen, where sometimes the drawing
would go to an old CB.
Dave Airlie [Fri, 10 Sep 2010 01:22:41 +0000 (11:22 +1000)]
r600g: don't need 3 bos here.
the code should reloc correctly a single BO 3 times.
Brian Paul [Fri, 10 Sep 2010 01:18:45 +0000 (19:18 -0600)]
graw: added test for finding shader mem leaks
Brian Paul [Fri, 10 Sep 2010 00:52:27 +0000 (18:52 -0600)]
draw: minor reformatting
Brian Paul [Fri, 10 Sep 2010 00:52:10 +0000 (18:52 -0600)]
graw: emit warnings when context/surface creation failes
Brian Paul [Fri, 10 Sep 2010 00:50:49 +0000 (18:50 -0600)]
winsys: emit warning in null_sw_displaytarget_create()
Brian Paul [Thu, 9 Sep 2010 21:11:37 +0000 (15:11 -0600)]
graw: fix array size, indentation,
Jakob Bornecrantz [Thu, 9 Sep 2010 23:16:19 +0000 (01:16 +0200)]
glsl2: Fix scons build for all platforms
Kristian Høgsberg [Thu, 9 Sep 2010 22:59:49 +0000 (18:59 -0400)]
Revert "glapi: Implement optional dispatch logging"
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.
Ian Romanick [Thu, 2 Sep 2010 04:23:52 +0000 (21:23 -0700)]
glsl2: Implement noise[1234] built-in functions using ir_unop_noise
Ian Romanick [Thu, 9 Sep 2010 22:25:32 +0000 (15:25 -0700)]
glsl2: Add EmitNoNoise flag, use it to remove noise opcodes
Ian Romanick [Thu, 9 Sep 2010 22:20:09 +0000 (15:20 -0700)]
glsl2: Add lowering pass to remove noise opcodes
Ian Romanick [Thu, 2 Sep 2010 04:12:10 +0000 (21:12 -0700)]
glsl2: Add ir_unop_noise
Kenneth Graunke [Thu, 9 Sep 2010 22:15:31 +0000 (15:15 -0700)]
glsl/builtins: normalize of a negative scalar should be -1.0.
Kristian Høgsberg [Thu, 9 Sep 2010 22:00:44 +0000 (18:00 -0400)]
mesa: Only reference logging symbols in debug builds
Kristian Høgsberg [Thu, 9 Sep 2010 21:08:12 +0000 (17:08 -0400)]
mesa: Don't reuse DummyFramebuffer as the incomplete framebuffer
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.
Jakob Bornecrantz [Thu, 9 Sep 2010 20:46:49 +0000 (22:46 +0200)]
glapi: Fix non-debug builds
ben [Thu, 26 Aug 2010 15:32:32 +0000 (17:32 +0200)]
st/dri: support EGL_MESA_image_drm: queryImage
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
ben [Thu, 26 Aug 2010 15:31:42 +0000 (17:31 +0200)]
st/dri: support EGL_MESA_image_drm: createImage
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
Kristian Høgsberg [Thu, 9 Sep 2010 19:00:02 +0000 (15:00 -0400)]
eglglx: Convert glx visuals/fbconfigs straight to EGL configs
In other words, skip the __GLcontextModes middle man.
Kristian Høgsberg [Thu, 9 Sep 2010 18:05:30 +0000 (14:05 -0400)]
egl: Remove old egldri driver
This driver doesn't work with any of the DRI drivers in the source tree.
Kristian Høgsberg [Thu, 9 Sep 2010 16:59:14 +0000 (12:59 -0400)]
glapi: Implement optional dispatch logging
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.
Kristian Høgsberg [Thu, 9 Sep 2010 17:18:40 +0000 (13:18 -0400)]
glx: Optimize out no-op make current calls
This make a lot more sense now that we might have to recreate the
glx drawables for legacy code paths.
Chia-I Wu [Thu, 9 Sep 2010 16:06:32 +0000 (00:06 +0800)]
egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.
_EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext
on error.
Chia-I Wu [Thu, 9 Sep 2010 16:02:47 +0000 (00:02 +0800)]
egl: Display may be NULL in _eglLookup*.
This fixes several NULL dereferences.
Brian Paul [Thu, 9 Sep 2010 16:03:46 +0000 (10:03 -0600)]
llvmpipe: remove redundant tgsi_dup_tokens() call
We were calling this twice so the first allocation was orphaned/leaked.
Francisco Jerez [Thu, 9 Sep 2010 12:07:38 +0000 (14:07 +0200)]
dri/nouveau: Expose EXT_texture_env_combine.
Francisco Jerez [Thu, 9 Sep 2010 12:14:48 +0000 (14:14 +0200)]
dri/nv10-nv20: Add support for NV_texture_env_combine4.
Francisco Jerez [Thu, 9 Sep 2010 12:14:14 +0000 (14:14 +0200)]
dri/nv04: Add support for NV_texture_env_combine4.
Francisco Jerez [Thu, 2 Sep 2010 00:18:02 +0000 (02:18 +0200)]
dri/nouveau: Minor cleanup.
Kristian Høgsberg [Thu, 9 Sep 2010 12:06:40 +0000 (08:06 -0400)]
glx: Fix another use-after-free problem
Andre Maasikas [Thu, 2 Sep 2010 15:16:42 +0000 (18:16 +0300)]
r600: add TXL instruction and note about TXB
Andre Maasikas [Thu, 2 Sep 2010 08:37:23 +0000 (11:37 +0300)]
r600: remove depth exports move, just set to output x <- z in the export intruction
Andre Maasikas [Thu, 2 Sep 2010 08:09:52 +0000 (11:09 +0300)]
r600: protect cleanup instructions from double free
We might get the cleanup when we have not translated the shader yet
e.g 2 programstringnotifys in a row
Andre Maasikas [Thu, 2 Sep 2010 08:03:38 +0000 (11:03 +0300)]
r600: remove mask from output intructions
in case of relative addressing we never get to know which comps
were really written.
Andre Maasikas [Thu, 2 Sep 2010 07:49:30 +0000 (10:49 +0300)]
r600: allow relative addressing of temps, inputs, outputs
Andre Maasikas [Wed, 1 Sep 2010 07:57:35 +0000 (10:57 +0300)]
r600: handle LIT writemask
Andre Maasikas [Wed, 1 Sep 2010 07:38:07 +0000 (10:38 +0300)]
r600: fix rsq from negative input
arbfp specifies rsq of abs value
Chia-I Wu [Thu, 9 Sep 2010 05:51:59 +0000 (13:51 +0800)]
docs: Update egl.html.
Mention that EGL_DRIVERS_PATH should be specified for uninstalled build.
Update TODOs.
Luca Barbieri [Sun, 5 Sep 2010 20:29:58 +0000 (22:29 +0200)]
glsl: add several EmitNo* options, and MaxUnrollIterations
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>
Luca Barbieri [Sun, 5 Sep 2010 16:49:54 +0000 (18:49 +0200)]
glsl: make compiler options per-target
This allows us to specify different options, especially useful for chips
without unified shaders.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Luca Barbieri [Sun, 5 Sep 2010 22:56:07 +0000 (00:56 +0200)]
mesa: add PIPE_SHADER_* like constants and conversions to/from enums (v2)
Changes in v2:
- No longer adds tessellation enums
Eric Anholt [Thu, 9 Sep 2010 01:04:35 +0000 (18:04 -0700)]
glsl: Add info about talloc and optimization passes to the README.
Eric Anholt [Thu, 9 Sep 2010 00:49:10 +0000 (17:49 -0700)]
glsl: Update README talking about multi-instruction operations.
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.
Kristian Høgsberg [Thu, 9 Sep 2010 00:55:02 +0000 (20:55 -0400)]
glx: Destroy pixmap after destroying glx and dri drawables
Now that we suppress BadDrawable from DRI2DestroyDrawable, this doesn't
matter, but we would get that error before when destroying pbuffers.
Kristian Høgsberg [Thu, 9 Sep 2010 00:34:07 +0000 (20:34 -0400)]
configure: Enable -fvisibility=hidden for g++ as well
Kenneth Graunke [Wed, 8 Sep 2010 23:03:33 +0000 (16:03 -0700)]
glsl/builtins: Set the API in the fake context.
Otherwise it gets used uninitialized.
Ian Romanick [Thu, 9 Sep 2010 00:13:00 +0000 (17:13 -0700)]
glsl2: Clear out profile pointers in _mesa_glsl_release_functions
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.