From b63f6e478a50fede28c492d4602b98167289b6a7 Mon Sep 17 00:00:00 2001 From: Patrick Cozzi Date: Thu, 17 Jan 2013 17:41:01 -0500 Subject: [PATCH] Removed restrict to workaround driver bug --- .../lfbLinked.glsl | 12 ++++++------ .../lfbPages.glsl | 18 +++++++++--------- .../lfbRagged.glsl | 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbLinked.glsl b/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbLinked.glsl index 8f0e2c2..3f16b62 100644 --- a/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbLinked.glsl +++ b/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbLinked.glsl @@ -2,14 +2,14 @@ #if LFB_READONLY -layout(r32ui) uniform readonly uimageBuffer restrict headPtrs; -layout(r32ui) uniform readonly uimageBuffer restrict nextPtrs; -layout(rgba32f) uniform readonly imageBuffer restrict data; +layout(r32ui) uniform readonly uimageBuffer headPtrs; +layout(r32ui) uniform readonly uimageBuffer nextPtrs; +layout(rgba32f) uniform readonly imageBuffer data; #else layout(binding = 0, offset = 0) uniform atomic_uint allocOffset; -layout(r32ui) uniform uimageBuffer restrict headPtrs; -layout(r32ui) uniform uimageBuffer restrict nextPtrs; -layout(rgba32f) uniform imageBuffer restrict data; +layout(r32ui) uniform uimageBuffer headPtrs; +layout(r32ui) uniform uimageBuffer nextPtrs; +layout(rgba32f) uniform imageBuffer data; #endif uniform int fragAlloc; diff --git a/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbPages.glsl b/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbPages.glsl index 605e3df..b7709fe 100644 --- a/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbPages.glsl +++ b/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbPages.glsl @@ -3,17 +3,17 @@ #extension GL_EXT_shader_image_load_store : enable #if LFB_READONLY -layout(r32ui) uniform readonly uimageBuffer restrict headPtrs; -layout(r32ui) uniform readonly uimageBuffer restrict nextPtrs; -layout(r32ui) uniform readonly uimageBuffer restrict counts; -layout(rgba32f) uniform readonly imageBuffer restrict data; +layout(r32ui) uniform readonly uimageBuffer headPtrs; +layout(r32ui) uniform readonly uimageBuffer nextPtrs; +layout(r32ui) uniform readonly uimageBuffer counts; +layout(rgba32f) uniform readonly imageBuffer data; #else layout(binding = 0, offset = 0) uniform atomic_uint allocOffset; -layout(r32ui) coherent uniform uimageBuffer restrict headPtrs; -layout(r32ui) uniform uimageBuffer restrict nextPtrs; -layout(r32ui) coherent uniform uimageBuffer restrict counts; -layout(r32ui) coherent uniform uimageBuffer restrict semaphores; -layout(rgba32f) uniform imageBuffer restrict data; +layout(r32ui) coherent uniform uimageBuffer headPtrs; +layout(r32ui) uniform uimageBuffer nextPtrs; +layout(r32ui) coherent uniform uimageBuffer counts; +layout(r32ui) coherent uniform uimageBuffer semaphores; +layout(rgba32f) uniform imageBuffer data; #endif uniform int fragAlloc; diff --git a/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbRagged.glsl b/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbRagged.glsl index 18b5d0f..350724d 100644 --- a/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbRagged.glsl +++ b/Chapter 20 Efficient Layered Fragment Buffer Techniques/lfbRagged.glsl @@ -11,8 +11,8 @@ layout(size1x32) uniform readonly uimageBuffer offsets; layout(size4x32) uniform readonly imageBuffer data; #else -layout(size1x32) uniform uimageBuffer restrict offsets; -layout(size4x32) uniform imageBuffer restrict data; +layout(size1x32) uniform uimageBuffer offsets; +layout(size4x32) uniform imageBuffer data; layout(size1x32) uniform uimageBuffer fragIDs; #endif