gallium: set prefer_real_buffer_in_constbuf0 for all drivers using tc

this isn't really a functional change since tc was always doing
cbuf uploads anyway

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
This commit is contained in:
Mike Blumenkrantz 2025-08-11 07:39:40 -04:00 committed by Marge Bot
parent 04c505c200
commit 203ac73374
6 changed files with 8 additions and 0 deletions

View file

@ -5452,6 +5452,9 @@ threaded_context_create(struct pipe_context *pipe,
return NULL;
}
/* drivers must set this */
assert(pipe->screen->caps.prefer_real_buffer_in_constbuf0);
if (options) {
/* this is unimplementable */
assert(!(options->parse_renderpass_info && options->driver_calls_flush_notify));

View file

@ -235,6 +235,7 @@ crocus_init_screen_caps(struct crocus_screen *screen)
u_init_pipe_screen_caps(&screen->base, 1);
caps->prefer_real_buffer_in_constbuf0 = true;
caps->npot_textures = true;
caps->anisotropic_filter = true;
caps->occlusion_query = true;

View file

@ -232,6 +232,7 @@ d3d12_init_screen_caps(struct d3d12_screen *screen)
u_init_pipe_screen_caps(&screen->base, caps->accelerated);
caps->prefer_real_buffer_in_constbuf0 = true;
caps->npot_textures = true;
/* D3D12 only supports dual-source blending for a single

View file

@ -365,6 +365,7 @@ fd_init_screen_caps(struct fd_screen *screen)
/* this is probably not totally correct.. but it's a start: */
/* Supported features (boolean caps). */
caps->prefer_real_buffer_in_constbuf0 = true;
caps->npot_textures = true;
caps->mixed_framebuffer_sizes = true;
caps->anisotropic_filter = true;

View file

@ -285,6 +285,7 @@ iris_init_screen_caps(struct iris_screen *screen)
const struct intel_device_info *devinfo = screen->devinfo;
caps->prefer_real_buffer_in_constbuf0 = true;
caps->npot_textures = true;
caps->anisotropic_filter = true;
caps->occlusion_query = true;

View file

@ -404,6 +404,7 @@ static void r600_init_screen_caps(struct r600_screen *rscreen)
enum radeon_family family = rscreen->b.family;
/* Supported features (boolean caps). */
caps->prefer_real_buffer_in_constbuf0 = true;
caps->npot_textures = true;
caps->mixed_framebuffer_sizes = true;
caps->mixed_color_depth_bits = true;