mesa.git
11 years agoMerge remote branch 'origin/7.8'
Dave Airlie [Thu, 8 Apr 2010 06:48:41 +0000 (16:48 +1000)]
Merge remote branch 'origin/7.8'

Conflicts:
Makefile
configs/default
src/mesa/main/version.h

11 years agost/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.
Chia-I Wu [Mon, 5 Apr 2010 02:06:52 +0000 (10:06 +0800)]
st/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.

When the format is __DRI_TEXTURE_FORMAT_RGB, the texture should be
treated as if there is no alpha channel.

11 years agotexenvprogram: fix for ARB_draw_buffers.
Dave Airlie [Sat, 3 Apr 2010 03:34:29 +0000 (13:34 +1000)]
texenvprogram: fix for ARB_draw_buffers.

piglit has a test called fbo-drawbuffers, this fails for me on r300g,
and fixing the texenv program to use the DATA outputs fixes it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
11 years agodraw llvm: highly reduce the compilation times for draw llvm
Zack Rusin [Wed, 7 Apr 2010 21:46:55 +0000 (17:46 -0400)]
draw llvm: highly reduce the compilation times for draw llvm

our code resets pipe_vertex_buffer's with different offsets when rendering
vbo, meaning that we kept creating insane number of shaders even for simple
apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to
compile them. this patch passes pipe_vertex_buffer's to the jit function and lets
it to the stride/buffer_offset computation at run time. the slowdown at runtime
is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less
than 1.

11 years agogallivm: Get the format translation logic write.
José Fonseca [Wed, 7 Apr 2010 21:17:07 +0000 (22:17 +0100)]
gallivm: Get the format translation logic write.

11 years agoutil: Support fixed formats conversion.
José Fonseca [Wed, 7 Apr 2010 21:16:18 +0000 (22:16 +0100)]
util: Support fixed formats conversion.

11 years agoutil: Add copyright header to u_half.h
José Fonseca [Wed, 7 Apr 2010 20:00:18 +0000 (21:00 +0100)]
util: Add copyright header to u_half.h

11 years agoutil: Remove the half typedef from p_compiler.h.
José Fonseca [Wed, 7 Apr 2010 20:00:05 +0000 (21:00 +0100)]
util: Remove the half typedef from p_compiler.h.

Unnecessary, and doesn't even guarantee size.

11 years agollvmpipe: Add missing include.
José Fonseca [Wed, 7 Apr 2010 19:55:31 +0000 (20:55 +0100)]
llvmpipe: Add missing include.

11 years agoutil: Use stubs for the dynamically loaded S3TC functions.
José Fonseca [Wed, 7 Apr 2010 19:47:38 +0000 (20:47 +0100)]
util: Use stubs for the dynamically loaded S3TC functions.

Loosely based on Luca Barbieri's commit
52e9b990a192a9329006d5f7dd2ac222effea5a5.

11 years agodraw: Fix MSVC build (snprintf->util_snprintf).
José Fonseca [Wed, 7 Apr 2010 19:41:09 +0000 (20:41 +0100)]
draw: Fix MSVC build (snprintf->util_snprintf).

11 years agoutil: Remove u_tile.c YCbCr's.
José Fonseca [Wed, 7 Apr 2010 18:58:18 +0000 (19:58 +0100)]
util: Remove u_tile.c YCbCr's.

Superseded by u_format_yuv.c. Also PIPE_FORMAT_YUYV's interpretation was
inconsistent: it was being interpreted as VYUY.

11 years agoutil: Implement YUV and subsampled RGB format conversion.
José Fonseca [Wed, 7 Apr 2010 18:47:24 +0000 (19:47 +0100)]
util: Implement YUV and subsampled RGB format conversion.

11 years agodraw: init draw->pt.middle.general = NULL just to be safe
Brian Paul [Wed, 7 Apr 2010 13:09:52 +0000 (07:09 -0600)]
draw: init draw->pt.middle.general = NULL just to be safe

This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).

11 years agollvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.
José Fonseca [Wed, 7 Apr 2010 12:49:29 +0000 (13:49 +0100)]
llvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.

11 years agor300: Initialize compiler.max_temp_regs for blits.
Michel Dänzer [Wed, 7 Apr 2010 09:21:15 +0000 (11:21 +0200)]
r300: Initialize compiler.max_temp_regs for blits.

Blits were broken since commit e41a64591bf1a74465bf0adc7d35c991c4cfb4fe
('r300/compiler: make the max number of fragment shader temporaries
adjustable').

11 years agodraw llvm: Remove unnecessary headers.
Vinson Lee [Wed, 7 Apr 2010 08:04:45 +0000 (01:04 -0700)]
draw llvm: Remove unnecessary headers.

11 years agogallium: Add files to Makefile.
Vinson Lee [Wed, 7 Apr 2010 07:45:40 +0000 (00:45 -0700)]
gallium: Add files to Makefile.

This was missed in commit ae69f9fbf0a1aab7186e5b644085a5fe5aea99af.
New files from the gallium_draw_llvm merge were added to SCons but
not make.

11 years agollvmpipe: Remove unused variable.
Vinson Lee [Wed, 7 Apr 2010 06:48:00 +0000 (23:48 -0700)]
llvmpipe: Remove unused variable.

11 years agonouveau: allow multiple simultaneous maps of a pipe_transfer
Ben Skeggs [Wed, 7 Apr 2010 05:41:17 +0000 (15:41 +1000)]
nouveau: allow multiple simultaneous maps of a pipe_transfer

I'm not entirely convinced we want this behaviour (the underlying nouveau_bo
doesn't support it either), but since certain parts of the mesa state
tracker appear to require it lets make it work for now.

11 years agonv50: fix assertion that caused piglit texturing/texrect-many to fail
Ben Skeggs [Wed, 7 Apr 2010 05:06:59 +0000 (15:06 +1000)]
nv50: fix assertion that caused piglit texturing/texrect-many to fail

11 years agoscons: define DRAW_LLVM if we're building it
Zack Rusin [Wed, 7 Apr 2010 02:41:11 +0000 (22:41 -0400)]
scons: define DRAW_LLVM if we're building it

11 years agodraw llvm: disable printing of the LLVM ir
Zack Rusin [Wed, 7 Apr 2010 00:27:17 +0000 (20:27 -0400)]
draw llvm: disable printing of the LLVM ir

11 years agocell: fix build
Marc Dietrich [Tue, 6 Apr 2010 21:44:08 +0000 (23:44 +0200)]
cell: fix build

compile fix for cell driver.

Signed-off-by: Brian Paul <brianp@vmware.com>
11 years agogallium/draw: add additional DRAW_LLVM check
Brian Paul [Wed, 7 Apr 2010 02:20:13 +0000 (20:20 -0600)]
gallium/draw: add additional DRAW_LLVM check

Fixes build breakage.

11 years agoMerge branch 'gallium_draw_llvm'
Zack Rusin [Wed, 7 Apr 2010 00:09:08 +0000 (20:09 -0400)]
Merge branch 'gallium_draw_llvm'

11 years agollvmpipe: Support S3TC when util_format_s3tc_enabled is set.
José Fonseca [Tue, 6 Apr 2010 21:49:57 +0000 (22:49 +0100)]
llvmpipe: Support S3TC when util_format_s3tc_enabled is set.

11 years agogallivm: Fallback to calling util_format_description::fetch_float for any format...
José Fonseca [Tue, 6 Apr 2010 21:49:33 +0000 (22:49 +0100)]
gallivm: Fallback to calling util_format_description::fetch_float for any format we can't code LLVM IR directly.

11 years agogallivm: Move the global LLVM objects (module, engine, provider, target) into here.
José Fonseca [Tue, 6 Apr 2010 21:37:08 +0000 (22:37 +0100)]
gallivm: Move the global LLVM objects (module, engine, provider, target) into here.

11 years agollvmpipe: use a define to decide whether to use draw llvm paths
Zack Rusin [Tue, 6 Apr 2010 21:14:30 +0000 (17:14 -0400)]
llvmpipe: use a define to decide whether to use draw llvm paths

right now disabled by default

11 years agodraw llvm: disable debugging output
Zack Rusin [Tue, 6 Apr 2010 21:14:13 +0000 (17:14 -0400)]
draw llvm: disable debugging output

11 years agodraw llvm: implement simple pipeline caching using variants
Zack Rusin [Tue, 6 Apr 2010 20:28:48 +0000 (16:28 -0400)]
draw llvm: implement simple pipeline caching using variants

11 years agodraw llvm: fix iteration for larger vertex arrays
Zack Rusin [Tue, 6 Apr 2010 16:37:31 +0000 (12:37 -0400)]
draw llvm: fix iteration for larger vertex arrays

we were trying to store the outputs starting at the same offset we
were using for the input arrays, which was writing beyond the end of
the output array.

11 years agodraw llvm: iterate with the correct stop over the outputs
Zack Rusin [Tue, 6 Apr 2010 16:07:33 +0000 (12:07 -0400)]
draw llvm: iterate with the correct stop over the outputs

it's whatever the var step is (4 usually) not an unconditional 1

11 years agoutil: Respect destination stride in pipe_get_tile_swizzle().
Michal Krol [Tue, 6 Apr 2010 15:19:28 +0000 (17:19 +0200)]
util: Respect destination stride in pipe_get_tile_swizzle().

11 years agodraw llvm: fix draw arrays
Zack Rusin [Tue, 6 Apr 2010 15:00:35 +0000 (11:00 -0400)]
draw llvm: fix draw arrays

we don't index within the outputs but only within the inputs

11 years agoutil: Make half float lookup tables constant.
José Fonseca [Sun, 4 Apr 2010 19:43:52 +0000 (20:43 +0100)]
util: Make half float lookup tables constant.

11 years agoutil: Remove the hand written SRGB format support code.
José Fonseca [Sun, 4 Apr 2010 19:14:55 +0000 (20:14 +0100)]
util: Remove the hand written SRGB format support code.

11 years agoutil: Support all SRGB formats.
José Fonseca [Sun, 4 Apr 2010 19:12:02 +0000 (20:12 +0100)]
util: Support all SRGB formats.

Based on code from Brian Paul and Michal Krol.

11 years agoegl_dri2: Flush before context switch and swap buffers.
Chia-I Wu [Tue, 6 Apr 2010 11:52:39 +0000 (19:52 +0800)]
egl_dri2: Flush before context switch and swap buffers.

DRI does not define any callback to flush the current context.  GLX
loader simply calls glFlush.  Follow the GLX loader here.

11 years agost/dri: Implement DRI image extension.
Chia-I Wu [Tue, 6 Apr 2010 10:55:40 +0000 (18:55 +0800)]
st/dri: Implement DRI image extension.

11 years agoprogs/egl: Correctly check GL_OES_EGL_image.
Chia-I Wu [Tue, 6 Apr 2010 10:06:03 +0000 (18:06 +0800)]
progs/egl: Correctly check GL_OES_EGL_image.

The hack was added because GL_OES_EGL_image was not exported in the
extension string.

11 years agomesa: Add OES_EGL_image to extension list.
Chia-I Wu [Tue, 6 Apr 2010 09:46:17 +0000 (17:46 +0800)]
mesa: Add OES_EGL_image to extension list.

11 years agoprogs/egl: Fix the blank window in pbuffer demo.
Chia-I Wu [Tue, 6 Apr 2010 05:24:24 +0000 (13:24 +0800)]
progs/egl: Fix the blank window in pbuffer demo.

EGL requires eglSwapBuffers to be called on the current surface.

11 years agoprogs/egl: Port drawtex and torus to eglut.
Chia-I Wu [Tue, 6 Apr 2010 05:17:56 +0000 (13:17 +0800)]
progs/egl: Port drawtex and torus to eglut.

This brings the demos also to KMS and removes about 400 duplicated lines
of code.

11 years agost/mesa: reformatting
Brian Paul [Tue, 6 Apr 2010 04:04:56 +0000 (22:04 -0600)]
st/mesa: reformatting

11 years agost/mesa: put fragment wpos code into separate function
Brian Paul [Tue, 6 Apr 2010 03:59:05 +0000 (21:59 -0600)]
st/mesa: put fragment wpos code into separate function

11 years agodraw llvm: fix loop iteration and vertex header offsets
Zack Rusin [Tue, 6 Apr 2010 04:13:20 +0000 (00:13 -0400)]
draw llvm: fix loop iteration and vertex header offsets

the loop was doing a NE comparison which we could have skipped if the prim
was triangles (3 verts) and our step was 4 verts. also fix offsets in conversion
to aos.

11 years agoegl: Unbind the old context in _eglBindContext.
Chia-I Wu [Tue, 6 Apr 2010 03:51:25 +0000 (11:51 +0800)]
egl: Unbind the old context in _eglBindContext.

The last commit incorrectly moved the code under an "else".

11 years agoegl: Fix eglMakeCurrent with different surfaces.
Chia-I Wu [Mon, 5 Apr 2010 13:26:34 +0000 (21:26 +0800)]
egl: Fix eglMakeCurrent with different surfaces.

0a82fadcdd0b6ebbc345c7c302da0e0efce40a98 seems to trigger a bug in
_eglBindContext.  Rework the logics yet again.  It is simpler, and
hopefully correct this time.

11 years agost/es: Remove unnedded --whole-archive.
Chia-I Wu [Mon, 5 Apr 2010 10:38:55 +0000 (18:38 +0800)]
st/es: Remove unnedded --whole-archive.

All public functions in the archives are either directly referenced or
indirectly referenced by _glapi_get_proc_address.  There is no need for
--whole-archive.

11 years agoscons: Link expat in dri builds.
Vinson Lee [Tue, 6 Apr 2010 01:13:09 +0000 (18:13 -0700)]
scons: Link expat in dri builds.

Fixes this i915g error.
i915_dri.so: undefined symbol: XML_ParserCreate

11 years agomesa: added Makefile.egl to GALLIUM_FILES
Brian Paul [Mon, 5 Apr 2010 23:33:12 +0000 (17:33 -0600)]
mesa: added Makefile.egl to GALLIUM_FILES

11 years agomesa: add missing file to GALLIUM_FILES
Thierry Vignaud [Mon, 5 Apr 2010 23:31:18 +0000 (17:31 -0600)]
mesa: add missing file to GALLIUM_FILES

Signed-off-by: Brian Paul <brianp@vmware.com>
11 years agodraw llvm: when generating the vertex_header struct adjust its name
Zack Rusin [Mon, 5 Apr 2010 20:43:53 +0000 (16:43 -0400)]
draw llvm: when generating the vertex_header struct adjust its name

change the name to not clash and accuretly represent the number of inputs
we store in the data member

11 years agodocs: Update 7.8.1 release MD5 sums
Ian Romanick [Mon, 5 Apr 2010 19:45:20 +0000 (12:45 -0700)]
docs: Update 7.8.1 release MD5 sums

11 years agost/mesa: trivially enable GL_EXT_gpu_program_parameters
Marek Olšák [Sun, 4 Apr 2010 21:15:15 +0000 (23:15 +0200)]
st/mesa: trivially enable GL_EXT_gpu_program_parameters

11 years agor300g: enforce microtiled zbuffer from X server
Marek Olšák [Mon, 5 Apr 2010 17:39:55 +0000 (19:39 +0200)]
r300g: enforce microtiled zbuffer from X server

This should be relatively safe, I think.

11 years agomesa: bump MESA_TINY version
Brian Paul [Mon, 5 Apr 2010 17:22:32 +0000 (11:22 -0600)]
mesa: bump MESA_TINY version

11 years agor300g: typecast using the r300_texture function
Marek Olšák [Mon, 5 Apr 2010 16:52:55 +0000 (18:52 +0200)]
r300g: typecast using the r300_texture function

11 years agodocs: added news item for 7.8.1 release
Brian Paul [Mon, 5 Apr 2010 17:12:59 +0000 (11:12 -0600)]
docs: added news item for 7.8.1 release

11 years agodocs: add link to 7.8.1 release notes
Brian Paul [Mon, 5 Apr 2010 17:10:51 +0000 (11:10 -0600)]
docs: add link to 7.8.1 release notes

11 years agosoftpipe: index the correct blend/mask state index
Brian Paul [Mon, 5 Apr 2010 17:00:52 +0000 (11:00 -0600)]
softpipe: index the correct blend/mask state index

Need to check pipe_blend_state::independent_blend_enable to determine
which render target/index to use when checking blend enable and colormask
state.

This is part of the fix for piglit/fbo-drawbuffers

11 years agodocs: Add 7.8.1 release MD5 sums
Ian Romanick [Mon, 5 Apr 2010 16:51:18 +0000 (09:51 -0700)]
docs: Add 7.8.1 release MD5 sums

11 years agomesa: set version string to 7.8.1
Ian Romanick [Mon, 5 Apr 2010 16:49:08 +0000 (09:49 -0700)]
mesa: set version string to 7.8.1

11 years agoInitial 7.8.1 release notes
Ian Romanick [Mon, 5 Apr 2010 16:12:33 +0000 (09:12 -0700)]
Initial 7.8.1 release notes

11 years agomesa: update_arrays() depends on program state.
Henri Verbeet [Sun, 4 Apr 2010 17:24:46 +0000 (10:24 -0700)]
mesa: update_arrays() depends on program state.

It uses ctx->VertexProgram._Current.

Signed-off-by: Brian Paul <brianp@vmware.com>
11 years agomesa: remove unused var
Brian Paul [Mon, 5 Apr 2010 14:09:57 +0000 (08:09 -0600)]
mesa: remove unused var

Fixes a coverity warnings.

11 years agoi965g: change value of VERT_RESULT_PSIZ hack to avoid warnings
Brian Paul [Mon, 5 Apr 2010 14:01:29 +0000 (08:01 -0600)]
i965g: change value of VERT_RESULT_PSIZ hack to avoid warnings

11 years agomesa: check for _NEW_BUFFERS for color read format queries
Brian Paul [Mon, 5 Apr 2010 14:01:05 +0000 (08:01 -0600)]
mesa: check for _NEW_BUFFERS for color read format queries

11 years agoutil: added util_dl_error()
Brian Paul [Tue, 30 Mar 2010 19:36:10 +0000 (13:36 -0600)]
util: added util_dl_error()

11 years agoMerge branch '7.8'
Ian Romanick [Mon, 5 Apr 2010 06:07:30 +0000 (23:07 -0700)]
Merge branch '7.8'

11 years agoUpdate to final names from GLX_INTEL_swap_event spec
Ian Romanick [Mon, 5 Apr 2010 06:06:01 +0000 (23:06 -0700)]
Update to final names from GLX_INTEL_swap_event spec

Fixes bug #27454.

11 years agor300g: enable OpenGL 2.1 on r3xx-r4xx chipsets
Marek Olšák [Mon, 5 Apr 2010 05:01:52 +0000 (07:01 +0200)]
r300g: enable OpenGL 2.1 on r3xx-r4xx chipsets

11 years agor300g: add fallback for back stencil reference value and masks for r3xx-r4xx
Marek Olšák [Mon, 5 Apr 2010 04:26:11 +0000 (06:26 +0200)]
r300g: add fallback for back stencil reference value and masks for r3xx-r4xx

This splits rendering into two passes when front and back stencil
reference value, value mask, or write mask don't match.

The advantages of doing it in the driver instead of in st are:
* SWTCL is executed just once and the resulting vertex buffer is reused
  in the second pass.
* Lower driver overhead due to the fallback being very close to
  the actual draw emission with minimum state change.

11 years agor300g: simplify accessing screen from context
Marek Olšák [Mon, 5 Apr 2010 01:19:08 +0000 (03:19 +0200)]
r300g: simplify accessing screen from context

11 years agor300g: remove some XXXs
Marek Olšák [Mon, 5 Apr 2010 00:44:16 +0000 (02:44 +0200)]
r300g: remove some XXXs

We can't have more than 8 texcoord outputs in VS.

11 years agor300g: raise the number of texture units to 16 for all supported chipsets
Marek Olšák [Mon, 5 Apr 2010 00:11:26 +0000 (02:11 +0200)]
r300g: raise the number of texture units to 16 for all supported chipsets

As per Radeon 9700 Opengl Programming and Optimization Guide [1], there are
16 texture units even on the first r300 chipsets. If you think I am wrong,
feel free to propose a patch.

[1] Here's PDF: http://people.freedesktop.org/~mareko/

11 years agor300/compiler: make the max number of fragment shader temporaries adjustable
Marek Olšák [Sun, 14 Feb 2010 22:57:46 +0000 (23:57 +0100)]
r300/compiler: make the max number of fragment shader temporaries adjustable

11 years agor300g: is_npot -> uses_pitch
Marek Olšák [Sun, 4 Apr 2010 14:09:59 +0000 (16:09 +0200)]
r300g: is_npot -> uses_pitch

11 years agor300g: enable conditional rendering also for SWTCL
Marek Olšák [Sun, 4 Apr 2010 07:58:40 +0000 (09:58 +0200)]
r300g: enable conditional rendering also for SWTCL

11 years agoprogs: Include X11 headers and libraries in SCons build.
Vinson Lee [Mon, 5 Apr 2010 02:15:01 +0000 (19:15 -0700)]
progs: Include X11 headers and libraries in SCons build.

Fixes Mac OS X SCons build.

11 years agoglut: Include X11 headers and libraries in SCons build.
Vinson Lee [Mon, 5 Apr 2010 01:28:03 +0000 (18:28 -0700)]
glut: Include X11 headers and libraries in SCons build.

Fixes Mac OS X SCons build.

11 years agoglew: Include X11 headers and libraries in SCons build.
Vinson Lee [Mon, 5 Apr 2010 01:07:12 +0000 (18:07 -0700)]
glew: Include X11 headers and libraries in SCons build.

Fixes Mac OS X SCons build.

11 years agodocs: update status of transform feedback and instanced drawing
Brian Paul [Mon, 5 Apr 2010 01:08:21 +0000 (19:08 -0600)]
docs: update status of transform feedback and instanced drawing

11 years agomesa: don't turn on GL_EXT_transform_feedback yet
Brian Paul [Mon, 5 Apr 2010 00:28:41 +0000 (18:28 -0600)]
mesa: don't turn on GL_EXT_transform_feedback yet

11 years agost/mesa: call pipe_context::draw_arrays/elements_instanced()
Brian Paul [Mon, 5 Apr 2010 00:22:46 +0000 (18:22 -0600)]
st/mesa: call pipe_context::draw_arrays/elements_instanced()

11 years agomesa: implement core Mesa support for GL_ARB_draw_instanced
Brian Paul [Mon, 5 Apr 2010 00:21:16 +0000 (18:21 -0600)]
mesa: implement core Mesa support for GL_ARB_draw_instanced

11 years agomesa: new validation functions for GL_ARB_draw_instanced
Brian Paul [Mon, 5 Apr 2010 00:18:28 +0000 (18:18 -0600)]
mesa: new validation functions for GL_ARB_draw_instanced

11 years agomesa: new extension flag for GL_EXT/ARB_draw_instanced
Brian Paul [Mon, 5 Apr 2010 00:17:06 +0000 (18:17 -0600)]
mesa: new extension flag for GL_EXT/ARB_draw_instanced

11 years agoglapi: regenerated files for GL_ARB_draw_instanced
Brian Paul [Mon, 5 Apr 2010 00:15:30 +0000 (18:15 -0600)]
glapi: regenerated files for GL_ARB_draw_instanced

11 years agoglapi: plug in ARB_draw_instanced.xml
Brian Paul [Mon, 5 Apr 2010 00:14:49 +0000 (18:14 -0600)]
glapi: plug in ARB_draw_instanced.xml

11 years agoglapi: ARB_draw_instanced.xml file
Brian Paul [Mon, 5 Apr 2010 00:14:03 +0000 (18:14 -0600)]
glapi: ARB_draw_instanced.xml file

11 years agoMerge branch '7.8'
Ian Romanick [Sun, 4 Apr 2010 23:54:00 +0000 (16:54 -0700)]
Merge branch '7.8'

11 years agogl: updated glxext.h to version 27
Ian Romanick [Sun, 4 Apr 2010 23:53:41 +0000 (16:53 -0700)]
gl: updated glxext.h to version 27

11 years agoprogs/egl: Add an OpenGL ES demo for EGL_OES_image_pixmap.
Chia-I Wu [Mon, 1 Mar 2010 07:21:46 +0000 (15:21 +0800)]
progs/egl: Add an OpenGL ES demo for EGL_OES_image_pixmap.

The demo uses a Pixmap as its drawing area, and whatever is drawn on the
pixmap will be used as a texture to draw a cube.

11 years agost/mesa: Implement GL_OES_EGL_image driver hooks.
Chia-I Wu [Thu, 25 Feb 2010 15:10:47 +0000 (23:10 +0800)]
st/mesa: Implement GL_OES_EGL_image driver hooks.

Use st_manager::get_egl_image to look up GLeglImageOES and implement
EGLImageTargetTexture2D and EGLImageTargetRenderbufferStorage.

11 years agost/egl: Implement get_egl_image hook.
Chia-I Wu [Fri, 12 Mar 2010 01:56:11 +0000 (09:56 +0800)]
st/egl: Implement get_egl_image hook.

This hook may be used by rendering state trackers to implement EGLImage
extensions.

11 years agor300g: fix TFP stride override.
Dave Airlie [Sun, 4 Apr 2010 10:31:42 +0000 (20:31 +1000)]
r300g: fix TFP stride override.

We should use pitch for the overriden state, fixes one half of the tfp test.

Signed-off-by: Dave Airlie <airlied@redhat.com>
11 years agor300g: add conditional rendering
Marek Olšák [Sun, 4 Apr 2010 06:59:09 +0000 (08:59 +0200)]
r300g: add conditional rendering