mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 22:38:19 +02:00
dri: Add an MSAA-enabled factor to DRI configs.
4 samples should be enough for GLUT to be satisfied, and I think most of the HW that does any MSAA, can do it. Note that any pipe that doesn't multisample can just ignore the corresponding flag in pipe_rasterizer_state.
This commit is contained in:
parent
c273ab007d
commit
a16d353b5e
1 changed files with 3 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ dri_fill_in_modes(struct dri_screen *screen,
|
|||
unsigned num_modes;
|
||||
uint8_t depth_bits_array[5];
|
||||
uint8_t stencil_bits_array[5];
|
||||
uint8_t msaa_samples_array[1];
|
||||
uint8_t msaa_samples_array[2];
|
||||
unsigned depth_buffer_factor;
|
||||
unsigned back_buffer_factor;
|
||||
unsigned msaa_samples_factor;
|
||||
|
|
@ -147,8 +147,9 @@ dri_fill_in_modes(struct dri_screen *screen,
|
|||
}
|
||||
|
||||
msaa_samples_array[0] = 0;
|
||||
msaa_samples_array[1] = 4;
|
||||
back_buffer_factor = 3;
|
||||
msaa_samples_factor = 1;
|
||||
msaa_samples_factor = 2;
|
||||
|
||||
num_modes =
|
||||
depth_buffer_factor * back_buffer_factor * msaa_samples_factor * 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue