Initial Alloy implementation.
This is a regression in functionality and performance, but a much better foundation for the future of the project (I think). It can run basic apps under an SSA interpreter but doesn't support some of the features required to do real 360 apps yet.
This commit is contained in:
@@ -19,7 +19,7 @@ using namespace xe::gpu::nop;
|
||||
using namespace xe::gpu::xenos;
|
||||
|
||||
|
||||
NopGraphicsDriver::NopGraphicsDriver(xe_memory_ref memory) :
|
||||
NopGraphicsDriver::NopGraphicsDriver(Memory* memory) :
|
||||
GraphicsDriver(memory) {
|
||||
shader_cache_ = new ShaderCache();
|
||||
}
|
||||
@@ -50,7 +50,7 @@ void NopGraphicsDriver::SetShader(
|
||||
uint32_t start,
|
||||
uint32_t length) {
|
||||
// Find or create shader in the cache.
|
||||
uint8_t* p = xe_memory_addr(memory_, address);
|
||||
uint8_t* p = memory_->Translate(address);
|
||||
Shader* shader = shader_cache_->FindOrCreate(
|
||||
type, p, length);
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace nop {
|
||||
|
||||
class NopGraphicsDriver : public GraphicsDriver {
|
||||
public:
|
||||
NopGraphicsDriver(xe_memory_ref memory);
|
||||
NopGraphicsDriver(Memory* memory);
|
||||
virtual ~NopGraphicsDriver();
|
||||
|
||||
virtual void Initialize();
|
||||
|
||||
Reference in New Issue
Block a user