Module: Mesa
Branch: staging/21.0
Commit: 0a76e30fc7af7b585546e33dd5923e9df0dcdad9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a76e30fc7af7b585546e33dd5923e9df0dcdad9

Author: Timothee Chabat <[email protected]>
Date:   Mon Mar 22 10:46:26 2021 +0100

llvmpipe: increase PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE value

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4237
Reviewed-by: Eric Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9750>
(cherry picked from commit b3ff9a02a43a19e67df881cbe34f7b20bd4bdf48)

---

 .gitlab-ci/piglit/llvmpipe-quick_gl.txt  | 1 +
 .pick_status.json                        | 2 +-
 src/gallium/drivers/llvmpipe/lp_screen.c | 3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci/piglit/llvmpipe-quick_gl.txt 
b/.gitlab-ci/piglit/llvmpipe-quick_gl.txt
index e15e5b7ac5e..4868cbcdbb1 100644
--- a/.gitlab-ci/piglit/llvmpipe-quick_gl.txt
+++ b/.gitlab-ci/piglit/llvmpipe-quick_gl.txt
@@ -598,6 +598,7 @@ spec/arb_shader_image_load_store/invalid/imageload/address 
bounds test/image2d/r
 spec/arb_shader_image_load_store/invalid/imageload/address bounds 
test/image2d/rg8ui: fail
 spec/arb_shader_image_load_store/max-size/image2dmsarray max size 
test/4x16384x8x8: skip
 spec/arb_shader_image_load_store/max-size/image2dmsarray max size 
test/4x8x16384x8: skip
+spec/arb_shader_image_load_store/max-size/imagebuffer max size 
test/134217728x1x1x1: skip
 spec/arb_shader_image_load_store/max-size/imagecube max size 
test/16384x16384x6x1: skip
 spec/arb_shader_image_load_store/max-size/imagecubearray max size 
test/16384x16384x6x1: skip
 spec/arb_shader_texture_image_samples/builtin-image/r8/compute/image2dms 
samples test/2x8x96x1: skip
diff --git a/.pick_status.json b/.pick_status.json
index d7194d7e1f6..d3f5ef5cb5a 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -652,7 +652,7 @@
         "description": "llvmpipe: increase PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE 
value",
         "nominated": false,
         "nomination_type": null,
-        "resolution": 4,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": null
     },
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c 
b/src/gallium/drivers/llvmpipe/lp_screen.c
index 0ba4b48c469..55553a2ed4b 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -223,8 +223,9 @@ llvmpipe_get_param(struct pipe_screen *screen, enum 
pipe_cap param)
       return 64;
    case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
       return 1;
+   /* Adressing that many 64bpp texels fits in an i32 so this is a reasonable 
value */
    case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
-      return 65536;
+      return 134217728;
    case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT:
       return 16;
    case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER:

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to