Commit 0662f6a7 authored by Jordan Justen's avatar Jordan Justen

arb_shader_image_load_store: Use GL_RGBA8 for image internal format

The motivation for this is that (as noted by curro)
ARB_shader_image_load_store doesn't support images with an internal
format of GL_RGBA.

See 'Table X.2' in
https://www.opengl.org/registry/specs/ARB/shader_image_load_store.txt

Therefore, in order to use image load/store in shader runner tests, we
must override the default internal format when creating the image.
Signed-off-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Francisco Jerez's avatarFrancisco Jerez <currojerez@riseup.net>
parent 370f124b
......@@ -31,11 +31,11 @@ void main()
[test]
# Texture 0 is the imageStore output.
uniform int tex 0
texture rgbw 0 (16, 16)
texture rgbw 0 (16, 16) GL_RGBA8
image texture 0
# Texture 1 is the rendering output. We don't care about this.
texture rgbw 1 (16, 16)
texture rgbw 1 (16, 16) GL_RGBA8
# Store red using imageStore
uniform vec4 color 1.0 0.0 0.0 1.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment