azur: double buffer space for command data

Now that it's in the main RAM we don't have to limit it as much.
This commit is contained in:
Lephenixnoir 2023-01-20 22:39:06 +01:00
parent e86a95f6d6
commit 81b1cc1083
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ static int commands_count=0, commands_length=0;
Rendering order is integer order. */
static uint32_t commands_array[AZRP_MAX_COMMANDS];
static GALIGNED(4) uint8_t commands_data[8192];
static GALIGNED(4) uint8_t commands_data[16384];
/* Array of shader programs and uniforms. */
static azrp_shader_t *shaders[AZRP_MAX_SHADERS] = { NULL };
@ -244,7 +244,7 @@ bool azrp_queue_command(void *command, size_t size, int fragment, int count)
{
if(commands_count + count > AZRP_MAX_COMMANDS)
return false;
if(commands_length + size >= 8192)
if(commands_length + size >= sizeof command_data)
return false;
uint8_t *dst = commands_data + commands_length;