From d5b23dfc1c07f98afe749053b9cb4b69829fe3d4 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 13 Aug 2013 21:49:59 +0200 Subject: r600g: move streamout state to drivers/radeon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This streamout state code will be used by radeonsi. There are new structures r600_common_context and r600_common_screen. What is inherited by what is shown here: pipe_context -> r600_common_context -> r600_context pipe_screen -> r600_common_screen -> r600_screen The common structures reside in drivers/radeon. Currently they only contain enough functionality to be able to handle streamout. Eventually I'd like the whole pipe_screen implementation to be shared and some of the context stuff too. This is quite big, but most changes are because of the new structures and the fact r600_write_value is replaced by radeon_emit. Thanks to Tom Stellard for fixing the build for r600g/compute. Reviewed-by: Michel Dänzer Reviewed-by: Christian König Tested-by: Tom Stellard --- src/gallium/drivers/r600/sb/sb_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r600/sb') diff --git a/src/gallium/drivers/r600/sb/sb_core.cpp b/src/gallium/drivers/r600/sb/sb_core.cpp index d907508eb2a..f16a0ffa3cd 100644 --- a/src/gallium/drivers/r600/sb/sb_core.cpp +++ b/src/gallium/drivers/r600/sb/sb_core.cpp @@ -51,8 +51,8 @@ sb_context *r600_sb_context_create(struct r600_context *rctx) { sb_context *sctx = new sb_context(); - if (sctx->init(rctx->isa, translate_chip(rctx->family), - translate_chip_class(rctx->chip_class))) { + if (sctx->init(rctx->isa, translate_chip(rctx->b.family), + translate_chip_class(rctx->b.chip_class))) { delete sctx; sctx = NULL; } -- cgit v1.2.3