mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 16:10:36 +02:00
radeonsi: allow 64K viewports
max_hw_screen_offset was incorrect Acked-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38587>
This commit is contained in:
parent
f6bf120d02
commit
f46b6042ab
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include "util/u_viewport.h"
|
||||
|
||||
#define GFX6_MAX_VIEWPORT_SIZE 16384
|
||||
#define GFX12_MAX_VIEWPORT_SIZE 32768 /* TODO: this should be 64K, but maxx/maxy doesn't have enough bits */
|
||||
#define GFX12_MAX_VIEWPORT_SIZE 65536
|
||||
|
||||
static void si_get_small_prim_cull_info(struct si_context *sctx, struct si_small_prim_cull_info *out)
|
||||
{
|
||||
|
|
@ -278,7 +278,7 @@ static void si_emit_guardband(struct si_context *sctx, unsigned index)
|
|||
const unsigned hw_screen_offset_alignment =
|
||||
sctx->gfx_level >= GFX11 ? 32 :
|
||||
sctx->gfx_level >= GFX8 ? 16 : MAX2(sctx->screen->se_tile_repeat, 16);
|
||||
const unsigned max_hw_screen_offset = sctx->gfx_level >= GFX12 ? 32752 : 8176;
|
||||
const unsigned max_hw_screen_offset = sctx->gfx_level >= GFX12 ? 32768 : 8176;
|
||||
|
||||
/* Indexed by quantization modes */
|
||||
static int max_viewport_size[] = {65536, 16384, 4096};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue