mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
iris: Use the URB size from the L3$ config
Cc: "20.0" mesa-stable@lists.freedesktop.org Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454>
This commit is contained in:
parent
99f3178a24
commit
bff7b3c7bd
3 changed files with 2 additions and 5 deletions
|
|
@ -264,8 +264,6 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
|||
ctx->get_device_reset_status = iris_get_device_reset_status;
|
||||
ctx->get_sample_position = iris_get_sample_position;
|
||||
|
||||
ice->shaders.urb_size = devinfo->urb.size;
|
||||
|
||||
iris_init_context_fence_functions(ctx);
|
||||
iris_init_blit_functions(ctx);
|
||||
iris_init_clear_functions(ctx);
|
||||
|
|
|
|||
|
|
@ -667,8 +667,6 @@ struct iris_context {
|
|||
struct u_upload_mgr *uploader;
|
||||
struct hash_table *cache;
|
||||
|
||||
unsigned urb_size;
|
||||
|
||||
/** Is a GS or TES outputting points or lines? */
|
||||
bool output_topology_is_points_or_lines;
|
||||
|
||||
|
|
|
|||
|
|
@ -7225,6 +7225,7 @@ genX(emit_urb_setup)(struct iris_context *ice,
|
|||
bool tess_present, bool gs_present)
|
||||
{
|
||||
const struct gen_device_info *devinfo = &batch->screen->devinfo;
|
||||
const struct gen_l3_config *l3_config = batch->screen->l3_config_3d;
|
||||
const unsigned push_size_kB = 32;
|
||||
unsigned entries[4];
|
||||
unsigned start[4];
|
||||
|
|
@ -7232,7 +7233,7 @@ genX(emit_urb_setup)(struct iris_context *ice,
|
|||
ice->shaders.last_vs_entry_size = size[MESA_SHADER_VERTEX];
|
||||
|
||||
gen_get_urb_config(devinfo, 1024 * push_size_kB,
|
||||
1024 * ice->shaders.urb_size,
|
||||
1024 * gen_get_l3_config_urb_size(devinfo, l3_config),
|
||||
tess_present, gs_present,
|
||||
size, entries, start);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue