Commit d0e402fb authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Meh

parent 21fd9e25
......@@ -103,7 +103,7 @@ panfrost_shader_compile(struct panfrost_context *ctx, struct mali_tripipe *meta,
/* TODO: From compiler */
if (type == JOB_TYPE_VERTEX) {
meta->attribute_count = 1;
meta->attribute_count = 4;
meta->varying_count = 4;
meta->uniform_count = 8;
meta->unknown1 = 1; /* XXX: WTF is this?! */
......
......@@ -29,6 +29,12 @@ int main(int argc, const char **argv)
0.500000f, 0.500000f, 0.000000f, 1.0f,
-0.50000f, -0.500000f, 0.000000f, 1.0f,
0.500000f, -0.500000f, 0.000000f, 1.0f,
-0.50000f, 0.500000f, 0.000000f, 1.0f,
0.500000f, 0.500000f, 0.000000f, 1.0f,
-0.50000f, -0.500000f, 0.000000f, 1.0f,
0.500000f, -0.500000f, 0.000000f, 1.0f,
};
struct pipe_resource templ = {
......@@ -42,11 +48,14 @@ int main(int argc, const char **argv)
struct pipe_transfer *transfer;
uint8_t *attrib_trans = gallium->transfer_map(gallium, rsrc, 0, 0, &box, &transfer);
const struct pipe_vertex_element attr = {
/* TODO */
const struct pipe_vertex_element attrs[] = {
{
/* TODO */
},
{}
};
gallium->bind_vertex_elements_state(gallium, gallium->create_vertex_elements_state(gallium, 1, &attr));
gallium->bind_vertex_elements_state(gallium, gallium->create_vertex_elements_state(gallium, 2, attrs));
const struct pipe_vertex_buffer buff = {
.buffer = { .resource = rsrc }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment