Skip to content
Snippets Groups Projects
Commit 311ab3d4 authored by Marek Olšák's avatar Marek Olšák
Browse files

r300g: fix macrotiling on R350

MACRO_SWITCH on R350 appears to use the RV350 mode by default. Who knew?

NOTE: This is a candidate for the 7.9 branch.
parent d2f24c4d
No related branches found
No related tags found
No related merge requests found
...@@ -256,7 +256,7 @@ static void r300_setup_miptree(struct r300_screen *screen, ...@@ -256,7 +256,7 @@ static void r300_setup_miptree(struct r300_screen *screen,
{ {
struct pipe_resource *base = &desc->b.b; struct pipe_resource *base = &desc->b.b;
unsigned stride, size, layer_size, nblocksy, i; unsigned stride, size, layer_size, nblocksy, i;
boolean rv350_mode = screen->caps.is_rv350; boolean rv350_mode = screen->caps.family >= CHIP_FAMILY_R350;
boolean aligned_for_cbzb; boolean aligned_for_cbzb;
desc->size_in_bytes = 0; desc->size_in_bytes = 0;
...@@ -351,7 +351,7 @@ static void r300_setup_tiling(struct r300_screen *screen, ...@@ -351,7 +351,7 @@ static void r300_setup_tiling(struct r300_screen *screen,
{ {
struct r300_winsys_screen *rws = screen->rws; struct r300_winsys_screen *rws = screen->rws;
enum pipe_format format = desc->b.b.format; enum pipe_format format = desc->b.b.format;
boolean rv350_mode = screen->caps.is_rv350; boolean rv350_mode = screen->caps.family >= CHIP_FAMILY_R350;
boolean is_zb = util_format_is_depth_or_stencil(format); boolean is_zb = util_format_is_depth_or_stencil(format);
boolean dbg_no_tiling = SCREEN_DBG_ON(screen, DBG_NO_TILING); boolean dbg_no_tiling = SCREEN_DBG_ON(screen, DBG_NO_TILING);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment